is a leftover from when VPCs weren't a thing, or you were able to have EC2 instances outside of a VPC. You should use
vpcSecurityGroupIds
l
limited-pager-46264
04/01/2021, 2:37 PM
Experienced its consequence now; when I updated the SG rules, pulumi ended replacing the instance using the SG 😱
limited-pager-46264
04/01/2021, 2:38 PM
Unfortunately,
vpcSecurityGroupIds
doesn’t seem to work
Copy code
File "./__main__.py", line 30, in <module>
du = aws.ec2.Instance(
TypeError: __init__() got an unexpected keyword argument 'vpcSecurityGroupIds'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.