Skip to content

Instantly share code, notes, and snippets.

@antklim
Last active March 23, 2018 07:24
Show Gist options
  • Save antklim/dc1eb8d5cba858c4c01b0f5fd6364b5a to your computer and use it in GitHub Desktop.
Save antklim/dc1eb8d5cba858c4c01b0f5fd6364b5a to your computer and use it in GitHub Desktop.
#!/bin/bash
PROFILE=$1
STACKNAME=$2
BUCKET=$3
ENVIRONMENT=$4
AWS_PROFILE=$PROFILE aws cloudformation create-stack --stack-name $STACKNAME \
--template-url https://s3.amazonaws.com/$BUCKET/cf.master.yml \
--parameters ParameterKey=Environment,ParameterValue=$ENVIRONMENT \
--capabilities CAPABILITY_NAMED_IAM \
--region ap-southeast-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment