In this demo, we will create a DynamoDb table using the AWS Management Console.
To get to DynamoDb, click on the services tab on the top left corner,
and under databases, click on DynamoDb.
Once you're here, click on the create table button,
and to create a DynamoDb table, we have to first provide a table name.
Let's create a table containing information about employees of an organization.
Let's name the table employee_data.
We're also expected to provide a primary key or a hash key,
so let's use the employee ID as the primary key in this example.
This can be of type number.
Let's leave all the other settings to default.
When ready, click on the create button.
This can take a couple of seconds, so wait until the table has been created.
Once the table has been created, you will be able to see the table name on the left.
If we click on the items tab, you'll see that there are no items added to this table yet.
Let's do that now, let's create some items which can be added to this table.
Once we click on the create item tab,
you'll see that the employee ID, which is the primary key is already populated.
To this, let's add a number of 1.
To add more attributes to this table, let's click on the append button.
Let's add a name of an employee which can be of type string.
Next, let's add age. This can be of type number.
Let's also add the role, which can be of type string, then click on save.
Here we have an item with an employee ID of 1,
the name is Lucy, age is 42 and the role is team lead.
Similarly, let's add some more items.
Now let's add the third item, which is for the user called Lee.
We now have a table with three items.
When we add items, only the primary key, which is the employee ID in this example,
is mandatory.
The rest are optional.
This can be seen for the item that we created for the user called Lee.
We did not specify the age for this item.
Finally, we can search for items in this table using filters.
For example, to list all users who are developers, add a filter like this.
That's it for this demo.
In the upcoming lecture, we'll see how to create dynamoDb tables using terraform.