1

What credentials or configuration should I use to connect to DynamoDB running in a Docker Container locally, through a webapp in Java with Eclipse.

In Java code I use this:

AmazonDynamoDBClientBuilder.standard().withRegion(Regions.US_EAST_1).build();

Ref: https://aws.amazon.com/about-aws/whats-new/2018/08/use-amazon-dynamodb-local-more-easily-with-the-new-docker-image/

NoSQLKnowHow
  • 4,449
  • 23
  • 35
  • 1
    You need to use endpoint url when defining the DynamoDB object. – krishna_mee2004 Aug 30 '18 at 15:28
  • 1
    Refer the sample java application which uses the DynamoDB local(Docker) https://github.com/aws-samples/aws-sam-java-rest – Vaisakh PS Aug 30 '18 at 16:15
  • Thanks @krishna_mee2004 now I use ` builderAWS.withEndpointConfiguration(new EndpointConfiguration ("http://localhost:8000", Regions.US_EAST_1.getName())); ` for local test, On the other hand, although I have created tables in http://localhost:8000/shell/ but in Java code I got ResourceNotFoundException – Hermes Flores Aug 30 '18 at 20:36

0 Answers0