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. DynamoDB (Downloadable Version) 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 service.

Modifying the Code to Use the DynamoDB Service

To use the Amazon DynamoDB service, you must change the endpoint in your application.

  1. To do this, first remove the following line:

    Copy
    ddbConfig.ServiceURL = "http://localhost:8000";
  2. Add a new line that specifies the AWS Region you want to access:

    Copy
    ddbConfig.RegionEndpoint = RegionEndpoint.REGION;

    For example, if you want to access the us-west-2 region, you would do this:

    Copy
    ddbConfig.RegionEndpoint = RegionEndpoint.USWest2;

Instead of using the downloadable version of DynamoDB, the program now uses the DynamoDB 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 AWS Region Selection in the AWS SDK for .NET Developer Guide.