https://pulumi.com logo
#general
Title
# general
i

important-zebra-56988

10/12/2021, 4:27 PM
Hey y’all! banging my head against this one 🤔 Any of you encountered conflicting error messages with
aws.ec2.Instance.VpcSecurityGroupIds
?
Copy code
## with vpc_security_group_ids as a List
error: aws:ec2/instance:Instance resource 'XXXX' has a problem: Attribute must be a single value, not a list. Examine values at 'Instance.VpcSecurityGroupIds'. 

## With vpc_security_group_ids as a string
error: aws:ec2/instance:Instance resource 'XXX' has a problem: Attribute should be a list. Examine values at 'Instance.VpcSecurityGroupIds'
Really odd, I resolved this by removing quotes from my config definition:
Copy code
ec2:security_group_ids: 
    - sg-XXX
    - sg-XXX
    - sg-XXX
Copy code
vpc_security_group_ids=[f"{config.require_object('security_group_ids')}"]
did the trick 🙂