Skip to content

Instantly share code, notes, and snippets.

@fernandostc
Created October 21, 2020 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandostc/1ebf5ba36f1885d681605581ebbc6507 to your computer and use it in GitHub Desktop.
Save fernandostc/1ebf5ba36f1885d681605581ebbc6507 to your computer and use it in GitHub Desktop.
Bad_CFT.yml
Resources:
Ec2Instance:
Type: 'AWS::EC2::Instance'
Properties:
SecurityGroups:
- !Ref InstanceSecurityGroup
KeyName: ec2-keypair
ImageId: ami-0ff8a91507f77f867
Tags:
-
Key: "Environment"
Value: "TestFernando"
InstanceSecurityGroup:
Type: 'AWS::EC2::SecurityGroup'
Properties:
GroupDescription: Enable SSH access via port 22 test
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp: 0.0.0.0/0
Tags:
-
Key: "Environment"
Value: "TestFernando"
S3Bucket:
Type: AWS::S3::Bucket
Properties:
BucketName: test-fernando-s3-bucket
Tags:
-
Key: "Environment"
Value: "TestFernando"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment