Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
provision-dynamodb
Advanced tools
Automatically scale dynamic dynamodb throughput using CLI or automate it further using serverless framework.
Any reliance you place on provision-dynamodb is strictly at your own risk.
Install CLI tool globally via NPM and verify the CLI tool.
npm install -g provision-dynamodb
provision-dynamodb --help
You will need to ensure that you have both dynamodb:DescribeTable
on the select tables and
cloudwatch:GetMetricStatistics
. Refer to example.json as a guide to automatically scale
the select tables.
DRY_RUN=true provision-dynamodb jsonfile example.json
Tips: 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}}]'
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
TODO: Explain about throughput calculations.
FAQs
Dynamic DynamoDB provisioning based on serverless framework.
The npm package provision-dynamodb receives a total of 1 weekly downloads. As such, provision-dynamodb popularity was classified as not popular.
We found that provision-dynamodb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.