Skip to content

Instantly share code, notes, and snippets.

@tamarabartlett
Last active April 19, 2017 23: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 tamarabartlett/2f25da627420eabcac30758d88966383 to your computer and use it in GitHub Desktop.
Save tamarabartlett/2f25da627420eabcac30758d88966383 to your computer and use it in GitHub Desktop.
Security Group Template
{
"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