Skip to content

Instantly share code, notes, and snippets.

@addamh
Created September 19, 2016 14:23
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 addamh/a0f65df23c48c1cf1d2c93a5c7ab5765 to your computer and use it in GitHub Desktop.
Save addamh/a0f65df23c48c1cf1d2c93a5c7ab5765 to your computer and use it in GitHub Desktop.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Parameters" : {
"EnvType" : {
"Description" : "Environment type.",
"Default" : "staging",
"Type" : "String",
"AllowedValues" : ["production", "staging"],
"ConstraintDescription" : "must specify prod or test."
}
},
"Conditions" : {
"CreateProdResources" : {"Fn::Equals" : [{"Ref" : "EnvType"}, "production"]}
},
"Resources" : {
"KibanaNode" : {
"Type" : "AWS::EC2::Instance",
"Condition" : "CreateProdResources",
"Properties" : {
"ImageId" : "ami-7f418316"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment