pulumi / pulumi-aws

An Amazon Web Services (AWS) Pulumi resource package, providing multi-language access to AWS
Apache License 2.0
466 stars 157 forks source link

Python subnet example doesn't make sense #2332

Open cnunciato opened 1 year ago

cnunciato commented 1 year ago

File: themes/default/content/registry/packages/aws/api-docs/ec2/subnet/_index.md

Filing on behalf of a community user. This example passes aws_vpc["main"]["id"] as the reference for vpc_id, but that doesn't make sense here, as there is no aws_vpc defined in the program, and if there were, the reference would be aws_vpc.id and not this notation. Other languages seem to have the same problem.

t0yv0 commented 8 months ago

Currently saying main_aws_vpc["id"] which still is off. I think we're failing to guess the type of the dangling variable here.