Setting the Local Endpoint
The AWS SDKs and tools use endpoints for the Amazon DynamoDB web service by default. To use the AWS SDKs and tools with DynamoDB running locally, you need to specify the local endpoint:
AWS Command Line Interface
You can use the AWS CLI to interact with DynamoDB running on your computer. For example, you can perform all of the steps in Creating Tables and Loading Sample Data using the AWS CLI.
You use the
--endpoint-url parameter with the AWS CLI to access DynamoDB
running locally. Here is an example of using the AWS CLI to list the tables in DynamoDB on your computer:
aws dynamodb list-tables
The AWS CLI cannot use the downloadable version of DynamoDB as a
default endpoint; therefore, you will need to specify
--endpoint-url with each CLI command.
The way you specify an endpoint depends on what programming language and AWS software development kit (SDK) you are using. The following sections describe how to do this for various languages:
For examples in other programming languages, see the Amazon DynamoDB Getting Started Guide. All of the code samples in the Getting Started Guide use the downloadable version of DynamoDB.