79375934

Date: 2025-01-21 21:10:01
Score: 1
Natty:
Report link

Its because you did not specify the VPC ID in the properties in that case !Ref passes the name and you have to use the !GetAtt instead, if you include the VPC ID in the properties you can use !Ref to get the SG ID:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-securitygroup.html

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: JMarsden