Create Items in a DynamoDB Table

Create Items in a DynamoDB Table

DynamoDB is a NoSQL database service provided by AWS. In this lab, we’ll go through the necessary steps for creating an item in a DynamoDB table.

image

We can add items to an existing table in two ways:

  • Adding individual items
  • Adding items in batches

We’ll cover only the first approach in this lab since we can only do batch writing via the AWS CLI or SDK.

Lab tasks

  • Create a DynamoDB table.
  • Create an item.
  • Create an item with additional attributes.
  • Clean up.

Architecture diagram

The following is the high-level architecture diagram of how to create items in the DynamoDB table.

image