Skip to content

Commit

Permalink
Closes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Calle Kabo committed Jun 30, 2016
1 parent 7f6b5b1 commit 90ddbae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy/cloudformation/cloudformation.sh
Expand Up @@ -19,16 +19,17 @@ BABEL_NODE=$DIR/../../node_modules/babel-cli/bin/babel-node.js
BIN_DIR=$DIR/../../bin
STACK_NAME=$($BABEL_NODE $BIN_DIR/dump-config.js CLOUDFORMATION)
ORIGIN=$($BABEL_NODE $BIN_DIR/dump-config.js ORIGIN)
REGION=$($BABEL_NODE $BIN_DIR/dump-config.js REGION)

if [ "$ACTION" = "delete-stack" ]; then
aws cloudformation delete-stack \
--region us-west-2 \
--region $REGION \
--stack-name $STACK_NAME
exit 0
fi

aws cloudformation $ACTION \
--region us-west-2 \
--region $REGION \
--stack-name $STACK_NAME \
--template-body file://$DIR/lambda-comments.json \
--capabilities CAPABILITY_IAM \
Expand Down

0 comments on commit 90ddbae

Please sign in to comment.