awslabs / aws-athena-query-federation

The Amazon Athena Query Federation SDK allows you to customize Amazon Athena with your own data sources and code.
Apache License 2.0
558 stars 295 forks source link

[QUESTION] DocumentDB unable to find valid certification #2389

Open GreinV opened 2 days ago

GreinV commented 2 days ago

I installed AthenaDocDBConnection through the Serverless Application Repository.
And I'm getting the following error:

Timed out after 30000 ms while waiting for a server that matches com.mongodb.client.internal.MongoClientDelegate$1@21a5fd96. Client view of cluster state is {type=REPLICA_SET, servers=[{address=db_address, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}}]: com.mongodb.MongoTimeoutException

How can I add the SSL certificate if I don’t have access to the code? Or what am I doing wrong?

default_docdb: mongodb://<user>:<pass>@<host>:<port>/?tls=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0

IMAGE_URI: 292517598671.dkr.ecr.us-east-1.amazonaws.com/athena-federation-repository-docdb:2024.42.3

GreinV commented 1 day ago

Can anyone help?