Summary - Amazon DynamoDB
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.


In this tutorial, you created the Movies table in the downloadable version of Amazon DynamoDB on your computer and performed basic operations. The downloadable version of DynamoDB is useful during application development and testing. However, when you're ready to run your application in a production environment, you must modify your code so that it uses the DynamoDB web service.

Modifying the Code to Use the DynamoDB Service

To use the DynamoDB web service, you must change the endpoint in your application. To do this, modify the following line.

dynamodb = boto3.resource('dynamodb',endpoint_url="http://localhost:8000")

For example, if you want to use the us-west-2 Region, change the code to the following.

dynamodb = boto3.resource('dynamodb',region_name='us-west-2')

Instead of using the downloadable version of DynamoDB on your computer, the program now uses the DynamoDB web service in the US West (Oregon) Region.

DynamoDB is available in Amazon Regions worldwide. For the complete list, see Regions and Endpoints in the Amazon General Reference. For more information about setting Regions and endpoints in your code, see Amazon Region Selection in the Amazon SDK for Java Developer Guide.