AWSTemplateFormatVersion: "2010-09-09" Description: AWS CloudFormation workshop - Resource Dependencies Challenge Lab (uksb-1q9p31idr) (tag:resource-dependencies). Parameters: LatestAmiId: Type: AWS::SSM::Parameter::Value Default: /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 Resources: Ec2Instance: Type: AWS::EC2::Instance Properties: ImageId: !Ref LatestAmiId InstanceType: t2.micro Tags: - Key: Name Value: Resource-dependencies-workshop InstanceSecurityGroup: 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: Allow http to client host SecurityGroupIngress: - IpProtocol: tcp FromPort: 80 ToPort: 80 CidrIp: 0.0.0.0/0 Tags: - Key: Name Value: Resource-dependencies-workshop S3Bucket: Type: AWS::S3::Bucket Properties: Tags: - Key: Name Value: Resource-dependencies-workshop