limited-pager-4626404/01/2021, 1:55 PM
When creating instances using python, am I supposed to use
warning: security_groups is deprecated: Use of `securityGroups` is discouraged as it does not allow for changes and will force your instance to be replaced if changes are made. To avoid this, use `vpcSecurityGroupIds` which allows for updates.
brave-planet-1064504/01/2021, 2:31 PM
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
limited-pager-4626404/01/2021, 2:37 PM
doesn’t seem to work
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