top of page

DynamoDB local setup


Requirement

DynamoDB needs Java Runtime Environment (JRE) version 6.x over.

 

Download

Download the DynamoDB for free from following link:

https://s3-ap-southeast-1.amazonaws.com/dynamodb-local-singapore/dynamodb_local_latest.zip

 

Start

1. Extract the downloaded file from above link. 2. Run the following code by opening a command prompt window.

java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb

-shareDb

DynamoDB will use a single database file instead of separate files through each region.

-inMemory

DynamoDB will run in memory instead of using a databases file. If DynamoDB is stopped, all data will be deleted.

3. port number will be 8000 as default. Can set the port with -port

 

Check



Example of DynamoDB run successfully.

Now let's check on browser by accessing " http://localhost:8000/shell/ ".



 

Stop

Type Ctrl+C at the command prompt.

 

Reference

Single post: Blog_Single_Post_Widget
bottom of page