Skip to content

Instantly share code, notes, and snippets.

@mauricio
Created June 16, 2014 17:43
Show Gist options
  • Save mauricio/23fc9adc6f73bf20e4aa to your computer and use it in GitHub Desktop.
Save mauricio/23fc9adc6f73bf20e4aa to your computer and use it in GitHub Desktop.
{
"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