Last active
February 25, 2020 04:05
-
-
Save elliottmurray/63a1216bae72720f5b1d5d036e323db5 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/sh | |
defaultBucket=<insert here> | |
STACK_NAME=$1 | |
BUCKET_NAME=${2:-$defaultBucket} | |
echo "Packaging..." | |
sam package -t template.yaml --output-template-file packaged.yaml --s3-bucket $BUCKET_NAME > /dev/null 2>&1 | |
echo "Deploying..." | |
sam deploy --template-file packaged.yaml --stack-name $STACK_NAME --capabilities CAPABILITY_NAMED_IAM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment