https://github.com/signiant/dynamodb-autoscale-lambda-enable
Lambda function which verifies that dynamoDB autoscaling is enabled for a new table
https://github.com/signiant/dynamodb-autoscale-lambda-enable
Last synced: about 1 year ago
JSON representation
Lambda function which verifies that dynamoDB autoscaling is enabled for a new table
- Host: GitHub
- URL: https://github.com/signiant/dynamodb-autoscale-lambda-enable
- Owner: Signiant
- License: mit
- Created: 2017-09-05T14:04:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-17T18:06:50.000Z (about 7 years ago)
- Last Synced: 2025-01-16T02:23:53.069Z (over 1 year ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dynamodb-autoscale-lambda-enable
Lambda function which verifies that dynamoDB autoscaling is enabled for a new table. If it is found to not be enabled, it is enabled.
# Prerequsites
* An IAM role that allows DynamoDB autoscaling ([AWS Docs](https://goo.gl/JVmkGS))
# Deploying
* Zip up the lambda function code in the `lambda` folder and place in an S3 bucket
* ie. `cd lambda; zip -r dynamodb-autoscale-enable.zip enable-as.py`
* Create a new cloudformation stack using the template in the cfn folder
The stack asks for the function zip file location in S3, the role name (NOT the ARN), the minimum throughput and the maxium throughput. Once the stack is created, a cloudwatch event is created to subscribe the lambda function to the `CreateTable` dynamodb call.