DynamoDB (Downloadable Version) on Your Computer
The downloadable version of Amazon DynamoDB is provided as an executable
.jar file. The application runs on Windows, Linux, macOS X, and
other platforms that support Java.
Follow these steps to set up and run DynamoDB on your computer:
-
Download DynamoDB for free using one of the following links.
Region Download Links Checksums Asia Pacific (Mumbai) Region
Asia Pacific (Singapore) Region
Asia Pacific (Tokyo) Region
EU (Frankfurt) Region
South America (São Paulo) Region
US West (Oregon) Region
Downloadable DynamoDB is available on Apache Maven. For more information, see DynamoDB (Downloadable Version) and Apache Maven, later in this topic. DynamoDB is also available as part of the AWS Toolkit for Eclipse. For more information, see AWS Toolkit For Eclipse.
Important
To run DynamoDB on your computer, you must have the Java Runtime Environment (JRE) version 6.x or newer. The application doesn't run on earlier JRE versions.
-
After you download the archive, extract the contents and copy the extracted directory to a location of your choice.
-
To start DynamoDB on your computer, open a command prompt window, navigate to the directory where you extracted
DynamoDBLocal.jar, and enter the following command.java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDbNote
If you're using Windows PowerShell, be sure to enclose the parameter name or the entire name and value like this:
java -D"java.library.path=./DynamoDBLocal_lib" -jar DynamoDBLocal.jarDynamoDB processes incoming requests until you stop it. To stop DynamoDB, press Ctrl+C at the command prompt.
DynamoDB uses port 8000 by default. If port 8000 is unavailable, this command throws an exception. For a complete list of DynamoDB runtime options, including
-port, enter this command.java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -help -
Before you can access DynamoDB programmatically or through the AWS Command Line Interface (AWS CLI), you must configure your credentials to enable authorization for your applications. Downloadable DynamoDB requires any credentials to work, as shown in the following example.
AWS Access Key ID: "fakeMyKeyId" AWS Secret Access Key: "fakeSecretAccessKey"You can use the
aws configurecommand of the AWS CLI to set up credentials. For more information, see Using the CLI. -
You can start writing applications. To access DynamoDB running locally, use the
--endpoint-urlparameter. For example, use the following command to list DynamoDB tables.aws dynamodb list-tables --endpoint-url http://localhost:8000
