Skip to content

Instantly share code, notes, and snippets.

@fernandostc
Created April 28, 2020 03:59
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/086e16ba678f022cb585773bbbeb2663 to your computer and use it in GitHub Desktop.
Save fernandostc/086e16ba678f022cb585773bbbeb2663 to your computer and use it in GitHub Desktop.
Resources:
Ec2Instance:
Type: 'AWS::EC2::Instance'
Properties:
SecurityGroups:
- !Ref InstanceSecurityGroup
KeyName: ec2-keypair
ImageId: ami-id
InstanceSecurityGroup:
Type: 'AWS::EC2::SecurityGroup'
Properties:
GroupDescription: Enable SSH access via port 22
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: 0
ToPort: 65535
CidrIp: 0.0.0.0/0
@fernandostc
Copy link
Author

Bad EC2 Tempalte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment