Last active
April 19, 2017 23:37
-
-
Save tamarabartlett/2f25da627420eabcac30758d88966383 to your computer and use it in GitHub Desktop.
Security Group Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Create a security group for EC2 instances", | |
"Resources" : { | |
"PingAndSshSecurityGroupStelligentBlog" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Security group that does not allow ping", | |
"SecurityGroupIngress" : [ | |
{ "IpProtocol" : "tcp", "FromPort" : "22", "ToPort" : "22", "CidrIp" : "0.0.0.0/0" } | |
] | |
} | |
} | |
}, | |
"Outputs" : { | |
"SecurityGroupID" : { | |
"Description" : "Security Group ID", | |
"Value" : { "Ref" : "PingAndSshSecurityGroupStelligentBlog" } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment