Skip to content

Instantly share code, notes, and snippets.

@MatthewJDavis
Created June 5, 2017 21:03
Show Gist options
  • Save MatthewJDavis/a4cc7f80a5954a7cbd9bc39f5d33b1af to your computer and use it in GitHub Desktop.
Save MatthewJDavis/a4cc7f80a5954a7cbd9bc39f5d33b1af to your computer and use it in GitHub Desktop.
AWS Cloudformation JSON parameters for EC2 instance
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Create a basic Amazon Linux Server",
"Parameters": {
"KeyName": {
"Description": "Key Pair name",
"Type": "AWS::EC2::KeyPair::KeyName",
"Default": "keyPair"
},
"VPC": {
"Description": "Select a VPC",
"Type": "AWS::EC2::VPC::Id"
},
"Subnet": {
"Description": "Select a subnet from the VPC",
"Type": "AWS::EC2::Subnet::Id"
},
"InstanceType": {
"Description": "Select one of the instance types",
"Type": "String",
"Default": "t2.micro",
"AllowedValues": ["t2.micro", "t2.small", "t2.medium"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment