Ensure that Time To Live (TTL) feature is enabled and configured for your Amazon DynamoDB tables in order to automate data expiration, reduce storage costs, and ensure data relevance.
optimisation
Time To Live (TTL) offers a cost-efficient approach to purging outdated data in Amazon DynamoDB. TTL empowers you to assign an expiration timestamp to each item, effectively marking it for deletion when it ceases to be relevant. To ensure that your storage costs remain optimized, Amazon DynamoDB automatically removes expired items within a few days of their expiration without consuming any write throughput.
Audit
To determine if Time To Live (TTL) feature is enabled for your Amazon DynamoDB tables, perform the following operations:
Remediation / Resolution
To enable and configure the Time To Live (TTL) feature for your existing Amazon DynamoDB tables, perform the following operations:
References
- AWS Documentation
- Amazon DynamoDB FAQs
- Time to Live (TTL)
- Enabling time to live (TTL)
- Computing time to live (TTL)
- AWS Command Line Interface (CLI) Documentation
- list-tables
- describe-time-to-live
- update-time-to-live