Amazon DynamoDB
Getting Started Guide (API Version 2012-08-10)

Python and DynamoDB

In this tutorial, you use the AWS SDK for Python (Boto 3) to write simple programs to perform the following Amazon DynamoDB operations:

  • Create a table called Movies and load sample data in JSON format.

  • Perform create, read, update, and delete operations on the table.

  • Run simple queries.

You use the downloadable version of DynamoDB in this tutorial. In the Summary, we explain how to run the same code against the DynamoDB web service.

Cost: Free


Before you begin this tutorial, you need to do the following:

  • Download and run DynamoDB on your computer. For more information, see Download and Run DynamoDB.

  • Sign up for Amazon Web Services and create access keys. You need these credentials to use AWS SDKs. To create an AWS account, go to, choose Create an AWS Account, and then follow the online instructions.

  • Create an AWS credentials file. For more information, see Configuration in the Boto 3 documentation.

  • Install Python 2.6 or later. For more information, see

For instructions, see Quickstart in the Boto 3 documentation.


As you work through this tutorial, you can refer to the AWS SDK for Python (Boto) documentation at The following sections are specific to DynamoDB:

We also recommend you review the DynamoDB concepts. For more information, see Introduction to DynamoDB Concepts.

Next Step

Step 1: Create a Table