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

fix: Type checker inaccurately allows using 'id' property of a component resource #324

Merged
merged 2 commits into from Aug 29, 2022

Conversation

AaronFriel
Copy link
Member

Fixes the invalid Pulumi YAML program execution in #323, with this change the program in that issue will report an error like so:

pulumi:pulumi:Stack (k8s-aws-yaml-dev):
    error: id does not exist on vpc
    
      on Pulumi.yaml line 37:
      37:       vpcId: ${vpc.id}
    
    Existing properties are: eips, urn, vpc, vpcId, routes and 9 others

Hopefully pointing them in the direction of using vpc.vpcId.

@AaronFriel AaronFriel requested a review from iwahbe August 26, 2022 21:33
@AaronFriel AaronFriel changed the title fix: Component resources do not output an 'id' property fix: Type checker inaccurately allows using 'id' property of a component resource Aug 26, 2022
Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AaronFriel AaronFriel merged commit ab2c007 into main Aug 29, 2022
@AaronFriel AaronFriel deleted the friel/components-lack-ids branch August 29, 2022 20:25
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.

None yet

2 participants