Reasons why DynamoDB TTL is deleting items 48 hours early

0 votes
I was looking to set up TTL for my DynamoDB table and set it to be the "TTL" key. Used python3 + boto3 to do a batch write with the TTL field set to str(int(time.time()) + 172800). I also tried int(time.time()) + 172800.

In either case, the epoch time stamp in the TTL column was 48 hours in the future. When using the second version, hovering over the value in the DynamoDB table showed a pop up with the date and time of the time stamp and I confirmed it was 2 days in the future.

However, when I came back ~5 minutes later and refreshed the table, all of the entries were gone.

I repeated the process and actively refreshed to keep an eye on the values and they were all getting deleted gradually with later time stamps being deleted last. I checked the cloudwatch logs and they showed my scans and writes in the correct GMT time.

I'm just wondering what might cause this to happen. For reference the table's creation date was July 27, 2019; is it possible that the clock for the db is off?
Feb 28, 2022 in AWS by Rahul
• 2,080 points
713 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

0 votes
1 answer

Why is subscriber optional on ansible sns?

Hey @bug_seeker, I could not find any ...READ MORE

answered Aug 8, 2018 in AWS by Priyaj
• 58,100 points

edited Jun 8, 2020 by Sirajul 917 views
0 votes
1 answer
+7 votes
2 answers

Why S3 is called a Object storage?

Amazon S3 stores data as objects within resources called "buckets".  Object storage, also ...READ MORE

answered Sep 24, 2018 in AWS by Priyaj
• 58,100 points
12,516 views
0 votes
1 answer

What is the best way to check if table exists in DynamoDB?

This function gives you a nice boolean ...READ MORE

answered Nov 30, 2018 in AWS by Archana
• 5,640 points
6,788 views
0 votes
1 answer

What is DynamoDB?

DynamoDB is a database service provided by ...READ MORE

answered Feb 14, 2019 in AWS by Esha Gupta
680 views
0 votes
1 answer

What kind of query is supported by DynamoDB?

DynamoDB provides a huge range of query ...READ MORE

answered Feb 14, 2019 in AWS by Esha Gupta
665 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP