DynamoDB Time To Live (Ttl)

  • Automatically delete items after an expiry timestamp
    • Expired items deleted within 48 hours of expiration
      • Will be deleted from both LSI anbd GSI
    • Expired items that haven't been deleted will appears in reads queries or scan.
      • We need to filter them if you don't want them
  • Doesn't consume any WCUs (no extra cost)
  • TTL attribute must be Number data type with Unix Epoch timestamp value
  • Delete operation for each expired item will go to DynamoDB Streams