Creating a Single Item

Create a single item in a table using CLI.

We'll cover the following...

Creating a table

Let’s start by creating a table. In this table, we will use Blog as the table-name. And we will use the following primary keys:

  • Partition key: Author
  • Range key: Topic_Title. The range key is the concatenation of the topic of the post and its title. Both the keys are of string datatype.

Run the following command to create the Blog.

aws dynamodb create-table
...