Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the port number of DynamoDB locally

How can I change the port number of dynamodb on my local machine? it is set for 8000 and want to change it. I'm on ubuntu 16.04.

like image 931
Garine Pondikian Avatar asked Sep 19 '18 12:09

Garine Pondikian


People also ask

Which port does DynamoDB use?

-port value — The port number that DynamoDB uses to communicate with your application. If you don't specify this option, the default port is 8000 .

Can you use DynamoDB locally?

DynamoDB Local is available as a download (requires JRE), as an Apache Maven dependency, or as a Docker image. If you prefer to use the Amazon DynamoDB web service instead, see Setting up DynamoDB (web service).

How do I open DynamoDB locally?

To access DynamoDB running locally with the AWS CLI, use the --endpoint-url parameter. For example, use the following command to list DynamoDB tables. The downloadable version of Amazon DynamoDB is available as a Docker image. For more information, see dynamodb-local .


1 Answers

The -portoption can be used to provide the some other port number other than the default 8000.

java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb -port 8001
like image 51
notionquest Avatar answered Oct 20 '22 18:10

notionquest