Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
AWS Lambda for Amazon DynamoDB daily resize (deployment script)
# 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
You can’t perform that action at this time.