provision-dynamodb v1.1.1
provision-dynamodb
Automatically scale dynamic dynamodb throughput using CLI or automate it further using serverless framework.
Disclaimer
Any reliance you place on provision-dynamodb is strictly at your own risk.
Getting Started
CLI Usage
Install CLI tool globally via NPM and verify the CLI tool.
npm install -g provision-dynamodb provision-dynamodb --helpYou will need to ensure that you have both
dynamodb:DescribeTableon the select tables andcloudwatch:GetMetricStatistics. Refer to example.json as a guide to automatically scale the select tables.DRY_RUN=true provision-dynamodb jsonfile example.jsonTips: Set DRY_RUN system environment for a dry run without actually applying the changes.
Alternatively, JSON can be specified inline:
DRY_RUN=true provision-dynamodb json '[{"name":"my-table-name","readStrategy":{"name":"capacity-ratio","upperThresholdRatio":0.8,"lowerThresholdRatio":0.15,"incrementRatio":3,"decrementRatio":0.8,"lowerBoundUnit":1,"upperBoundUnit":28},"writeStrategy":{"name":"capacity-ratio","upperThresholdRatio":0.8,"lowerThresholdRatio":0.15,"incrementRatio":3,"decrementRatio":0.8,"lowerBoundUnit":1,"upperBoundUnit":28}}]'
Serverless Project
Clone this project and update serverless settings in serverless.yml as documented in Serverless.yml Reference. You should consider to fork this and customise it for your own deployment.
Configure scaling strategy. TODO: Give recommendations.
Deploy.
sls deploy
Scaling Strategy
TODO: Explain about throughput calculations.