Inserting Items Into a DynamoDB Table

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating a DynamoDB Table with a Partition Key
lock
Creating a DynamoDB Table with Local and Global Secondary Indexes
lock
Inserting Items Into a DynamoDB Table
lock
Editing DynamoDB Table Items
lock
Querying a DynamoDB Table
lock
Deleting a DynamoDB Table
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

After creating all the needed tables, you are ready to fill them with demo data.

 

Instructions

1. In the left-hand menu, click Explore items:

alt

 

2. In the Tables list, select 

You will see nothing under Items returned because there are no items stored.

 

3. On the right-hand side, click Create item:

alt

The Create item form will load and you will see a list of Attributes.

 

4. In the Value textbox next to Name - Partition key, enter a name for your forum (can be anything you wish):

alt

 

5. To add another attribute for this item, click Add new attribute and select String from the list of types:

alt

 

6. In the Attribute name textbox, enter Description and in the Value textbox, enter any value you'd like:

alt

 

7. At the bottom, click Create item:

alt

 

8. Repeat steps 3-7 three more times so that end up with four entries in the  table:

alt

 

9. Select the table and click Create Item.

  

10. Provide any values you'd like for , and , keeping in mind that the value must match the name of one of your forums.

Note is a "" table with the Local Secondary Index. For being able to save a  item, you have to provide:

  • (the table Primary Key)
  •  (the table Sort Key)
  •  (the Local Secondary Index Sort Key)

Note: You will have to click Add new attribute to add the CreationDate attribute and specify a value.

 

11. At the bottom, click Create item.

 

12. Repeat steps 9-11 three more times until you have four items in the  table:

alt

 

 

Summary

In this lab step, you inserted several items into two of your DynamoDB tables.

Validation checks
1Checks
Thread DynamoDB Table Exists and Has an Item

A Dynamodb table called Thread exists and has at least one item

Amazon DynamoDB