Created
December 4, 2019 22:03
-
-
Save scottnixonjr/488779be81e6d099d06dc06261c77ec6 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 | |
# 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