DynamoDB

As we said earlier, we are going to use DynamoDB to store the cart information. We are going to have two Dynamo tables, one for current carts and one for placed orders. To create these, we need to go onto the AWS console and navigate to the DynamoDB service:

DynamoDB console page

Click Create table to start creating a new table. We are asked to name our table and select a primary key. We're going to call our first table shopping-cart and set the Primary key to ID. The primary key is the value that we will be able to use to look up records, and it is best practice to use ID as the name of the Primary key:

Table creation

When we click ...

Get Hands-On Chatbot Development with Alexa Skills and Amazon Lex now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.