Override dynamoDBEnpoint
Hi,
I'm running Localstack with Kinesis and DynamoDB locally, but I still don't know how to override DynamoDB endpoint. I was looking at the kinesis application client java library, but I guess it uses the default constructor to create the DynamoDbAsyncClient instance.
DynamoDbAsyncClient dynamoDBClient = DynamoDbAsyncClient.builder() .credentialsProvider(DefaultCredentialsProvider.create()).build();
Does anyone know how to do it?
Got into the same problem. Please help!
Kinesis needs to store its checkpoint status in DynamoDB, but it always go to the real Amazon DynamoDB. How can we point it to the localstack?
Try using:
DynamoDbAsyncClient.builder()
.endpointOverride(new URI(config.endPoint))
.credentialsProvider(**AnonymousCredentialsProvider.**create())
.build()
Or:
.endpointOverride(StaticCredentialsProvider.create(AwsBasicCredentials.create("x", "x")))