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

Code Sample Clarity for aws.ec2.getSubnet #5635

Open
jdh313 opened this issue Oct 7, 2024 · 0 comments
Open

Code Sample Clarity for aws.ec2.getSubnet #5635

jdh313 opened this issue Oct 7, 2024 · 0 comments
Labels
needs-triage Needs attention from the triage team

Comments

@jdh313
Copy link

jdh313 commented Oct 7, 2024

In the following code block:

import pulumi
import pulumi_aws as aws

config = pulumi.Config()
subnet_id = config.require_object("subnetId")
selected = aws.ec2.get_subnet(id=subnet_id)
subnet = aws.ec2.SecurityGroup("subnet",
    vpc_id=selected.vpc_id,
    ingress=[{
        "cidr_blocks": [selected.cidr_block],
        "from_port": 80,
        "to_port": 80,
        "protocol": "tcp",
    }])

the variable name subnet is extremely confusing as it's a security group being created with that function call.

File: themes/default/content//registry/packages/aws/api-docs/ec2/getsubnet

@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs attention from the triage team
Projects
Status: 🤔 Triage
Development

No branches or pull requests

2 participants