Created
September 19, 2016 14:23
-
-
Save addamh/a0f65df23c48c1cf1d2c93a5c7ab5765 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", | |
"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