This message was deleted.
# aws
s
This message was deleted.
b
Reading the issue it looks like
security_groups
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
Experienced its consequence now; when I updated the SG rules, pulumi ended replacing the instance using the SG 😱
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
Ah..found the right parameter in the doc; it’s
vpc_security_group_ids