Search⌘ K

Creating a Single Item

Explore the process of creating a DynamoDB table named Blog with partition and range keys. Learn to use the put-item API to insert single items through the AWS CLI, including handling attribute data and replacing existing items.

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.

 ...