Created
August 25, 2019 01:03
-
-
Save anhtv08/adddde666a7571270758395b4a271683 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
bucket_name=joey-my-sam-app | |
project_dir=$HOME/working/cloud-computing/lambda-demos | |
# packaging application | |
sam package \ | |
--output-template-file $project_dir/output/packaged.yaml \ | |
--s3-bucket $bucket_name > /dev/null | |
# deploying application | |
echo "Deploying lambda functions:" | |
sam deploy \ | |
--template-file $project_dir/output/packaged.yaml \ | |
--stack-name sam-app-1 \ | |
--capabilities CAPABILITY_IAM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment