From the course: AWS Certified Data Engineer Associate (DEA-C01) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Hands-on learning: Add a time to live (TTL) to items

Hands-on learning: Add a time to live (TTL) to items

From the course: AWS Certified Data Engineer Associate (DEA-C01) Cert Prep

Hands-on learning: Add a time to live (TTL) to items

(inspiring music) - Hi, guys. In this lesson, we're going to add a Time To Live attribute to items in our database, and we're going to see how we can then use that to automatically expire those items. So I'm back in this file here. We do need to recreate our table. So what I'm going to do is create my table and then we're going to run this command. So I'm just going to copy the command to my clipboard. I've come back to Amazon DynamoDB. Let's create the table. We're going to create it with the same settings as we had before. So it's called My Store. Partition key is Client ID, and the sort key is created. And then I'm just going to accept all defaults and create my table. So my table is active, and I've come back to the command line, and I'll just paste in that command again, and we're going to add all of those items to our table. So if I go back into my table now and choose Explore Items, I can see all the items as I could before. Now what we're going to do is we're going to add an…

Contents