Menu
Amazon DynamoDB
Developer Guide (API Version 2012-08-10)

Summary

In this tutorial, you created the Movies table in 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 Amazon DynamoDB web service.

Modifying the Code to Use the DynamoDB Service

To use the DynamoDB service, you must change the endpoint in your application. To do this, modify the code as follows:

Copy
AWS.config.update({endpoint: "https://dynamodb.aws-region.amazonaws.com"});

For example, if you want to use the us-west-2 Region, you set the following endpoint:

Copy
AWS.config.update({endpoint: "https://dynamodb.us-west-2.amazonaws.com"});

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

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