Skip to content

Instantly share code, notes, and snippets.

@bageljp
Created June 8, 2013 15:20
Show Gist options
  • Select an option

  • Save bageljp/5735488 to your computer and use it in GitHub Desktop.

Select an option

Save bageljp/5735488 to your computer and use it in GitHub Desktop.
cloudformation templates.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Template SecurityGroupIngress Sample and AllTrafic Sample",
"Resources" : {
"SGroup1" : {
"Type" : "AWS::EC2::SecurityGroup",
"Properties" : {
"GroupDescription" : "EC2 Instance access"
}
},
"SGroup1Ingress" : {
"Type" : "AWS::EC2::SecurityGroupIngress",
"Properties" : {
"GroupName" : { "Ref" : "SGroup1" },
"IpProtocol" : "tcp",
"ToPort" : "80",
"FromPort" : "80",
"SourceSecurityGroupName" : { "Ref" : "SGroup1" }
}
},
"SGroup2" : {
"Type" : "AWS::EC2::SecurityGroup",
"Properties" : {
"GroupDescription" : "EC2 Instance access"
}
},
"SGroup2Ingress" : {
"Type" : "AWS::EC2::SecurityGroupIngress",
"Properties" : {
"GroupName" : { "Ref" : "SGroup2" },
"IpProtocol" : "-1",
"ToPort" : "-1",
"FromPort" : "-1",
"SourceSecurityGroupName" : { "Ref" : "SGroup2" }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment