Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active November 21, 2017 14:47
Show Gist options
  • Save dasgoll/c6eb460539ae3af3fad3 to your computer and use it in GitHub Desktop.
Save dasgoll/c6eb460539ae3af3fad3 to your computer and use it in GitHub Desktop.
CloudFormation Security Group All Traffic
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Hadoop Cluster (HDP 2.3)",
"Resources": {
"secg": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"GroupDescription": "secg",
"VpcId": "vpc-1e1af67b",
"SecurityGroupIngress": [
{
"IpProtocol": "-1",
"CidrIp": "192.168.3.102/32"
}
]
}
}
},
"Outputs": {
"secg": {
"Value": {
"Ref": "secg"
}
}
}
}
====
"SecurityGroupIngress" : [{
"IpProtocol" : "tcp",
"FromPort" : "-1",
"ToPort" : "-1",
"CidrIp" : "0.0.0.0/0"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment