This message was deleted.
# python
s
This message was deleted.
p
I think the error is kinda self-explanatory. You have to pass CIDR there, not a string name (like
sg-12345678
).
I checked the docs and it looks like SecurityGroup can get
security_groups
instead of `cidr_blocks`: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/securitygroup/#securitygroupingress
I’d check if changing:
Copy code
cidr_blocks=[lb_sg.id]
to
Copy code
security_groups=[lb_sg.id]
works for you.
🙏 1
f
Thank you!