Created
December 4, 2019 22:04
-
-
Save scottnixonjr/59ae0015f55b19bf9c498732258895d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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