Skip to content

Instantly share code, notes, and snippets.

@alexcasalboni
Created March 5, 2019 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexcasalboni/9ccccc285c6d01af96a189662501f794 to your computer and use it in GitHub Desktop.
Save alexcasalboni/9ccccc285c6d01af96a189662501f794 to your computer and use it in GitHub Desktop.
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