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:
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:
When we click ...