Created
February 11, 2012 04:26
-
-
Save elebertus/1796155 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" : "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