Created
March 5, 2019 17:09
-
-
Save alexcasalboni/9ccccc285c6d01af96a189662501f794 to your computer and use it in GitHub Desktop.
AWS Lambda for Amazon DynamoDB daily resize (deployment script)
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
# install AWS SAM | |
pip install --user aws-sam-cli | |
# configure your AWS credentials | |
aws configure | |
# package your raw YAML template | |
sam package | |
--template-file template.yml \ | |
--s3-bucket YOUR_BUCKET \ | |
--output-template-file compiled.yml | |
# deploy your compiled YAML template | |
sam deploy | |
--template-file compiled.yml \ | |
--stack-name YOUR_STACK_NAME \ | |
--capabilities CAPABILITY_IAM \ | |
--parameter-overrides TablePrefix=YOUR_PREFIX_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment