![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
serverless-dynamodb-autoscaling
Advanced tools
Serverless Plugin for Amazon DynamoDB Auto Scaling configuration.
With this plugin for serverless you can set DynamoDB Auto Scaling configuratin in your serverless.yml
file. The plugin supports multiple tables and separate configuration sets for read
and write
capacities using AWS native DynamoDB Auto Scaling.
Add the NPM package to your project:
# Via yarn
$ yarn add serverless-dynamodb-autoscaling
# Via npm
$ npm install serverless-dynamodb-autoscaling --save-dev
Add the plugin to your serverless.yml
:
plugins:
- serverless-dynamodb-autoscaling
Configure DynamoDB Auto Scaling in serverless.yml
with references to your DynamoDB CloudFormation resources for the table
property:
custom:
capacities:
- table: CustomTable # DynamoDB Resource
read:
minimum: 5 # Minimum read capacity
maximum: 1000 # Maximum read capacity
usage: 0.75 # Targeted usage percentage
write:
minimum: 40 # Minimum write capacity
maximum: 200 # Maximum write capacity
usage: 0.5 # Targeted usage percentage
- table: AnotherTable
read:
minimum: 5
maximum: 1000
# usage: 0.75 is the default
That's it! With the next deployment (sls deploy
) serverless will add a CloudFormation configuration to enable Auto Scaling for the DynamoDB resources CustomTable
and AnotherTable
.
You must of course provide at least a configuration for read
or write
to enable Auto Scaling. The value for usage
has a default of 75 percent.
Notice: With the relese of v0.2.x
the plugin introduced a breaking change. Starting with v0.2.0
you need to provide the CloudFormation reference for the table
property. In v0.1.x
the plugin used a name
property with the DynamoDB table name.
The configuration above works fine for a default DynamoDB table configuration.
resources:
Resources:
CustomTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: custom-table
AttributeDefinitions:
- AttributeName: key
AttributeType: S
KeySchema:
- AttributeName: key
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 5
WriteCapacityUnits: 5
Feel free to use the code, it's released using the MIT license.
You are welcome to contribute to this project! 😘
To make sure you have a pleasant experience, please read the code of conduct. It outlines core values and believes and will make working together a happier experience.
FAQs
Serverless Plugin for Amazon DynamoDB Auto Scaling.
The npm package serverless-dynamodb-autoscaling receives a total of 4,457 weekly downloads. As such, serverless-dynamodb-autoscaling popularity was classified as popular.
We found that serverless-dynamodb-autoscaling demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.