Skip to content

Instantly share code, notes, and snippets.

@elebertus
Created February 11, 2012 04:26
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 elebertus/1796155 to your computer and use it in GitHub Desktop.
Save elebertus/1796155 to your computer and use it in GitHub Desktop.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "Sample Amazon Linux x86_64 using CloudFormation",
"Parameters" : {
"KeyName" : {
"Description" : "some-key",
"Type" : "String"
}
},
"Mappings" : {
"RegionMap" : {
"us-east-1" : { "64" : "ami-1b814f72" }
}
},
"Resources" : {
"Ec2Instance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"ImageId" : { "Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "64" ]},
"SecurityGroups" : [ "cloudfoundry" ],
"KeyName" : { "Ref" : "KeyName" },
"InstanceType" : "m1.large"
}
}
},
"Outputs" : {
"InstanceId" : {
"Value" : { "Ref" : "Ec2Instance" },
"Description" : "Instance Id of newly created instance"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment