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 are ready to run your application in a production
environment, you want to modify your code so that it uses the Amazon DynamoDB web service.
Using the Amazon DynamoDB Service
You need to change the endpoint in your application in order to use the Amazon DynamoDB service. To do this, modify the code as follows:
For example, if you want to use the us-west-2 region, you set the following endpoint:
Instead of using DynamoDB on your computer, the program now uses the Amazon DynamoDB web service endpoint in US West (Oregon).
Finally, we recommend that you read the Amazon DynamoDB Developer Guide. It provides more in-depth information about DynamoDB, including sample code and best practices.