1

My client program is to get the records from DynamoDb table. My binary is working as expected on host machine, but if I run the same binary in Linux container, it's returning this error:

Unable to connect to endpoint

Do I need to change anything in client code or container settings?

2 Answers 2

1

This might be a bit late, but in case someone else is trying to run AWS through docker, by default it checks the SSL certificates when it connects. So you need to initialise the AWS client configuration with:

Aws::Client::ClientConfiguration config;
config.verifySSL = false;
Sign up to request clarification or add additional context in comments.

Comments

0

It might be an SSL issue, if you see exceptions and/or logs mentioning about some sort of SSL certificate or connection error.

The short summary is that your linux box need to trust Amazon's root CA, which you can test by visiting https://dynamodb.eu-west-3.amazonaws.com.

Here is more detailed documentation to diagnose and resolve certificate related issues: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ats-certs.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.