aws / aws-toolkit-visual-studio

AWS Toolkit for Visual Studio - a plugin to interact with AWS
https://aws.amazon.com/visualstudio/
Apache License 2.0
109 stars 29 forks source link

Connect to already running instance of DynamoDB Local #47

Open namse opened 4 years ago

namse commented 4 years ago

The Toolkit allows users to start an instance of DynamoDB Local and connect to it, however the toolkit owns the lifecycle of DynamoDB Local. It should be possible for users to stand up an instance of DynamoDB Local on their own (and manage its lifecycle), and connect the toolkit to an already running instance of DynamoDB Local.


Original issue text:

Hello.

I installed and run DynamoDB Local in Docker, with port 8000.

But I couldn't connect to DynamoDB Local with this toolkit. This toolkit force me turn on new DynamoDB java process.

Could you let me know how to just connect to running DynamoDB Instance?

kdrapala commented 4 years ago

Try to run DynamoDB using this command docker run -i -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -inMemory -sharedDb

Then in your code change ServiceUrl in AmazonDynamoDbConfig o the http://localhost:8000

namse commented 4 years ago

Try to run DynamoDB using this command docker run -i -p 8000:8000 amazon/dynamodb-local -jar DynamoDBLocal.jar -inMemory -sharedDb

Then in your code change ServiceUrl in AmazonDynamoDbConfig o the http://localhost:8000

Im not asking how to connect to dynamodb with SDK. I’m asking how to with Toolkit. because this toolkit force me to run java dynamodb version.

awschristou commented 4 years ago

Hi @namse thank you for reaching out. I've updated the issue title and description to make this a feature request.

awschristou commented 4 years ago

Hi again @namse , please see #50 for a workaround.

namse commented 4 years ago

@awschristou Wow you made it very clear! thank you!