Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the Ref intrinsic implementation #243

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Nov 21, 2024

This change adds some tests and comments around the Ref intrinsic implementation and moves it to intrinsics.ts. The one change in behavior is that now Ref is able to consult Pulumi metadata from the aws-native provider. The metadata helps it resolve to the same values as it would in CloudFormation for resources that have non-standard Ref behavior. The correctness of this process is up to the correctness of the metadata tables. Entries not found in the metadata tables default to using Pulumi id for most cases should do the right thing.

Fixes #173

Needs pulumi/pulumi-aws-native#1836

@t0yv0 t0yv0 changed the title Sketch out metadata-aware Ref intrinsic Improve the Ref intrinsic implementation Nov 22, 2024
@t0yv0 t0yv0 marked this pull request as ready for review November 22, 2024 21:31
@t0yv0
Copy link
Member Author

t0yv0 commented Nov 22, 2024

Acceptance tests catching something, excellent, I'll have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CloudFormation Refs do not always map to the CCAPI id
1 participant