
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
serverless-dynamodb-ttl
Advanced tools
It's not possible to use DynamoDB's TTL feature with CloudFormation yet. Use this plugin to configure TTL for your DynamoDB with Serverless.
Add the npm package to your project:
# Via yarn
$ yarn add serverless-dynamodb-ttl
# Via npm
$ npm install serverless-dynamodb-ttl --save
Add the plugin to your serverless.yml
:
plugins:
- serverless-dynamodb-ttl
Configure TTL in serverless.yml
:
custom:
dynamodb:
ttl:
- table: your-dynamodb-table-name
field: your-ttl-property-name
That's it! After the next deployment (sls deploy
) serverless will configure your TTL properties in DynamoDB.
Feel free to use the code, it's released using the MIT license.
You are more than welcome to contribute to this project! 😘
To make sure you have a pleasant experience, please read our code of conduct. It outlines our core values and believes and will make working together a happier experience.
# Via yarn
$ yarn test
# Via npm
$ npm test
This will also run standardjs to ensure the changes match the desired code style.
FAQs
Serverless plugin to configure DynamoDB TTL
The npm package serverless-dynamodb-ttl receives a total of 269 weekly downloads. As such, serverless-dynamodb-ttl popularity was classified as not popular.
We found that serverless-dynamodb-ttl 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.