skip to Main Content

I have created a connection in Glue with a DocumentDB cluster. The cluster is running and I can connect from my laptop and also from AWS athena to run Athena queries over it. The connection URL in Glue follows this format:

mongodb://host:27017/database

In the connection creation I have tried enabling and disabling the SSL connection option:
enter image description here

Also I have disable in the cluster the TLS and rebooted the database. Every time I test the connection with Glue I get this error:

Check that your connection definition references your Mongo database with correct URL syntax, username, and password.
Exiting with error code 30

Also I have tried setting the user and password in the URL but I get the same error.

How can I solve this?

Thanks!!!

2

Answers


  1. Chosen as BEST ANSWER

    I have solved the problem. Disabling TLS on DocumnetDB and in the Glue connection works. I have to find the way to make it working with TLS enabled.


  2. First of all, does the "database" actually exists in DocumentDB cluster? Make sure you select the right VPC for Glue, has to be the same as DocumentDB. When using the Test Connection option, one of the security groups has to have an allow all rule, or the source security group in your inbound rule can be restricted to the same security group.
    This blog post has some good info on how to setup a Glue connection to MongoDB/DocumentDB.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search