Skip to content

Instantly share code, notes, and snippets.

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