- Newest
- Most votes
- Most comments
Hello,
The shared error "Error Category: UNCLASSIFIED_ERROR; An error occurred while calling o106.getDynamicFrame. Invalid connection string" generally occurs when the connection string used for connectivity from Glue is not valid.
I checked the documentation and could see that the expected uri for the DocumentDB is as below:
mongodb://host:port/databasename
Please note that this does not include your username or password in the URL.
[+]Amazon DocumentDB connections: https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect-documentdb-home.html
I would kindly request you to update your URI as required and provide the username and password in the separate username and password fields accordingly which you can find below while creating the connection. Alternatively you can also use Secrets manager to store your credentials and then use that in your connection. Please refer [1] for steps on the same.
Also, if you want to run a glue job, you can refer [2] for providing the connection details directly from the job script and that would not require you to create a connection.
References:
[2] https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-connect-documentdb-home.html
