Skip to content
SohamMajumder edited this page Mar 29, 2023 · 2 revisions

Welcome to the DynamoDB_TTL wiki!

In this Example we will go over an example which adds TTL value to DynamoDB Items to allow for Automatic Cleanup of Older Data.

Use Case

  1. Automatic Removal of Old Records
  2. Save Cost & Reduce Manual intervention

Pre-Requisites:

  1. AWS Console Access
  2. AWS Cloud Shell Access

Steps to be followed:

  1. Open the AWS Cloud Shell (Separate TAB)
  2. Create a DynamoDB [CLI Script attached]
  3. Ensure the TTL option is enabled from Console (check below)
  4. Run the bash script {DynamoDB_TTL.sh} in AWS Shell to generate a sequence of Items with TTL values embedded [10 mis ahead]

Ref:

Enable TTL in DynamoDB from Console: image

Clone this wiki locally