public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
{
"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"
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.