AWSTemplateFormatVersion: "2010-09-09" Description: AWS CloudFormation workshop - Resource Dependencies Lab with Ref and Fn::GetAtt Intrinsic Functions (uksb-1q9p31idr) (tag:resource-dependencies). Parameters: EmailAddress: Description: Enter an email address to subscribe to your Amazon SNS topic. Type: String Resources: SNSTopic: Type: AWS::SNS::Topic Properties: Tags: - Key: Name Value: Resource-dependencies-workshop SNSTopicSubscription: Type: AWS::SNS::Subscription Properties: Endpoint: !Ref EmailAddress Protocol: email TopicArn: !Ref SNSTopic SecurityGroup: Type: AWS::EC2::SecurityGroup Metadata: cfn_nag: rules_to_suppress: - id: F1000 reason: This is using default VPC where we dont know VpcId to support egress. Missing egress rule means all traffic is allowed outbound. Properties: GroupDescription: Workshop Security Group Tags: - Key: Name Value: Resource-dependencies-workshop SecurityGroupIngress: Type: AWS::EC2::SecurityGroupIngress Properties: GroupId: !GetAtt SecurityGroup.GroupId IpProtocol: tcp FromPort: 80 ToPort: 80 CidrIp: 0.0.0.0/0