Skip to content

Instantly share code, notes, and snippets.

@ultimate010
Forked from toshihirock/cloudFormationSample.sh
Last active August 29, 2015 14:24
Show Gist options
  • Save ultimate010/5c73e5dbd8e34f052107 to your computer and use it in GitHub Desktop.
Save ultimate010/5c73e5dbd8e34f052107 to your computer and use it in GitHub Desktop.
# valid
aws cloudformation validate-template --template-body file://MyStack.json
# create stack
aws cloudformation create-stack --template-body file://Mystack.json --stack-name MyFirstStack
# create stack with parameter
aws cloudformation create-stack --template-body file://CloufFormationSample.json --stack-name MyFirstStack --parameters ParameterKey=KeyNameParameter,ParameterValue=HogeKeyPair
# update stack
aws cloudformation update-stack --template-body file://MyStack.json --stack-name MyFirstStack
# get current template
aws cloudformation get-template --stack-name MyFirstStack
# delete stack
aws cloudformation delete-stack --stack-name MyFirstStack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment