Question

Is there any way to get the timestamp for the most recent update on a DynamoDB table?

Was it helpful?

Solution

No. This is not part of the DynamoDB api. Fortunately this is easy to implement yourself. Add a column to each item for each UpdateItem or PutItem request with the current time. This will insert the time according to your application servers instead of DynamoDB itself, but these ideally will be the same

OTHER TIPS

If you are just interested in an approximate time, you can get the timestamp of the write operations rounded to the nearest 5 minutes by looking at the SuccessfulRequestLatency metric for the PutItem operation inside Cloudwatch. You will see an entry on the x-axis only if there was a write operation in that 5-minutes time segment.

In the following screenshot, you can see that there was at least one write operation around 10:30 and 10:35, too: enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top