Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created January 26, 2017 14:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save marrobi/77bbabf09dd92404e8d7110e2d1932e8 to your computer and use it in GitHub Desktop.
EC2 Instance
"EC2Instance": {
"Type": "AWS::EC2::Instance",
"Properties": {
"InstanceType": { "Ref": "InstanceType" },
"SecurityGroups": [ { "Ref": "InstanceSecurityGroup" } ],
"KeyName": { "Ref": "KeyName" },
"ImageId": {
"Fn::FindInMap": [
"AWSRegionArch2AMI",
{ "Ref": "AWS::Region" },
{
"Fn::FindInMap": [
"AWSInstanceType2Arch",
{ "Ref": "InstanceType" },
"Arch"
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment