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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.