Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Are My DynamoDB Items With a TTL Epoch Not Deleting?

Two epoch dates that are in the past by greater than one week:

  1. 1666324555879
  2. 1666170554391

I have determined their date with this tool: https://www.epochconverter.com/

Expectation: Items to delete within 48 hours of the epoch date, determined by the field with (TTL) in it.

Outcome: No items in any table deleting.

Records in the Console:

enter image description here

like image 463
Luke Avatar asked Nov 18 '25 15:11

Luke


1 Answers

DynamoDB expects the TTL value to be in seconds, but yours are in milliseconds.

Your items will be deleted in about 50k years ;)

like image 184
fedonev Avatar answered Nov 21 '25 09:11

fedonev