Skip to content

Instantly share code, notes, and snippets.

@scottnixonjr
Created December 4, 2019 22:03
Show Gist options
  • Save scottnixonjr/488779be81e6d099d06dc06261c77ec6 to your computer and use it in GitHub Desktop.
Save scottnixonjr/488779be81e6d099d06dc06261c77ec6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# parameters
STACK=$(jq -r .stack parameters.json)
REGION=$(jq -r .region parameters.json)
TEMPLATE=file://${STACK}.yml
echo "Creating $STACK Stack"
aws cloudformation create-stack --stack-name $STACK \
--template-body $TEMPLATE \
--capabilities CAPABILITY_NAMED_IAM \
--region $REGION \
#--parameters \
#"ParameterKey=KeyAdministrator,ParameterValue=$KEY_ADMIN"
aws cloudformation wait stack-create-complete --stack-name $STACK --region $REGION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment