Man 1: from the AWS console go to find services and type in DynamoDB. Once the page loads you'll see a giant create table in the beginning. If you don't see that you can also go to the left and go to tables.
We'll name our table to dos and then go to the option of specifying a partition key and a sort key. Together these form what you might know as a primary key from another database. We're going to go with the very generic keys, PK and SK or partition key and sort key, for reasons we'll see later.
The default settings set a provision to capacity within the free tier, but we could also set this database up to be an on-demand database.
After the table is created we can see the Dynamo streams are not enabled, and the option to manage streams. We can scroll down and see a bunch of other table details, which is where the point in time recovery is turned on, what our encryption type is and what our provision read capacity units are.
If we go to items, it scans the table by default to show us all the items in our database, of which we have none...
We can scroll down and see a bunch of our other table details, which is where the point in time recovery is turned on what our encryption type is and what our provision read capacity units are.
If we go to items, it scans the table by default and show us all the items in our database of which we have none. Let's create one. Then I create item to create an item and fill out the PK and SK was string values. That's the only thing around right now, the values don't really matter.
We also want to append a map or the key of data or we'll store additional data about this todo and that we can click in to edit this object. We'll go up to the left, we'll change from tree view to text view in which we had a JSON value. Using the JSON value interface, we can enter our data and save.
Note that the way the data is stored in the database for our map as such that our text key has an object inside of it with a key of S and a value of my first todo. The S is the type of the value as we'll go into more later.
Depending on which client you use to interact with DynamoDB, you'll either have to know about and use these type values or the client will take care of it for you. We can also delete the item which we'll do now.