Created
June 16, 2014 17:43
-
-
Save mauricio/23fc9adc6f73bf20e4aa to your computer and use it in GitHub Desktop.
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": "Configuration for API queues, security groups and other general configuration", | |
"Resources": { | |
"ApiSecurityGroupProduction": { | |
"Type": "AWS::EC2::SecurityGroup", | |
"Properties": { | |
"GroupDescription": "Group for the api instances", | |
"GroupName": "api_production", | |
"SecurityGroupIngress": [ | |
{ | |
"IpProtocol": "tcp", | |
"FromPort": "8000", | |
"ToPort": "8000", | |
"SourceSecurityGroupId": "sg-843f59ed" | |
}, | |
{ | |
"IpProtocol": "tcp", | |
"FromPort": "22", | |
"ToPort": "22", | |
"SourceSecurityGroupName": "chef_server" | |
} | |
] | |
} | |
}, | |
"ApiWorkerSecurityGroupProduction": { | |
"Type": "AWS::EC2::SecurityGroup", | |
"Properties": { | |
"GroupDescription": "Worker role, no traffic inside", | |
"GroupName": "api_worker_production", | |
"SecurityGroupIngress": [ | |
{ | |
"IpProtocol": "tcp", | |
"FromPort": "22", | |
"ToPort": "22", | |
"SourceSecurityGroupName": "chef_server" | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment