Create the Amazon DynamoDB Tables

Time Estimate: 10 - 15 minutes

What is Amazon DynamoDB?
Amazon DynamoDB is a key-value and document database that delivers single-digit millisecond performance at any scale. It’s a fully managed, multiregion, multimaster, durable database with built-in security, backup and restore, and in-memory caching for internet-scale applications.
For more information, see

  1. Make sure you are in N. Virginia region. Look for the DynamoDB service in the AWS Management console and click on the highlighted result to access the service.

    Find DynamoDB

We need to create 2 DynamoDB tables:

  • Documents table: This table will store metadata on the documents that we upload to S3.
  • Outputs table: This table will store metadata of the processed documents and the outputs that Textract delivers.

We will provide step by step instructions on how to create the Documents table.

  1. Click create table:

    Create Table
  2. Then populate the details as shown below to create the Documents table.

    Create DynamoDB Table
  3. Repeat a similar process to create the Outputs table. For primary key use again documentId as you did for the Documents table. Add a sort key as well called outputType like below:

    DynamoDB output
  4. After creating your tables the DynamoDB dashboard should look like below:

    DynamoDB dashboard
  5. Take a note of both Documents table and Outputs table ARNs as you will need those for later stages of the workshop. You can find this in the Overview tab of each table like shown below:

    DynamoDB ARN