Skip to content

AWS Glue to MongoDb atlas - ServerSelectionTimeoutError -Timed out

0

Hi Team,

Have a AWS Glue job connection to mongo db atlas . Getting this error ServerSelectionTimeoutError: xyz.mongodb.net:27017: timed out error. How can i resolve this using AWS privatelink and MOngoDb service Endpoint ?

Thanks

asked 2 years ago265 views
1 Answer
0

It seems your Glue job is still trying to reach to Mongodb over the public endpoint. If you are using and VPC endpoint, then in the connection settings for your Glue job, use the private DNS name of the MongoDB endpoint provided by the VPC endpoint, instead of the public xyz.mongodb.net address.

AWS
EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.