Skip to content

Instantly share code, notes, and snippets.

@toshihirock
Last active August 29, 2015 14:17
Show Gist options
  • Save toshihirock/b31f5ed9064ccfcc1ee2 to your computer and use it in GitHub Desktop.
Save toshihirock/b31f5ed9064ccfcc1ee2 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