I’m trying to replicate data from MongoDB Atlas into an S3 data lake (not mongo’s data lake) using AWS Data Migration Services, but I’m getting this error:
Failed to establish a connection to MongoDB using the following parameters: ‘mongodb://mongodb+srv://[theUsername]:[thePassword]@[theServer].mongodb.net:27017/?retryWrites=false’
I’m putting this as the Server Name, and DMS is automagically adding the port number from a separate field in DMS and the retryWrites
param at the end:
mongodb+srv://[theUsername]:[thePassword]@[theServer].mongodb.net
Anyone successfully used Atlas as a source endpoint?
3
Answers
Sadly, the response from my devops folks was "due to our network config this will never work."
Try extracting server, username, and password from the connection string of MongoDB and put these fields separately during endpoint creation.
Good afternoon,
I was able to successfully configure the connection between DMS and MongoDB-Atlas. Both publicly and privately.
As of today, DMS does not officially support MongoDB-Atlas.
For the connection to work, it will be necessary to specify the MongoDB-Atlas primary endpoint in the connection.
Example (endpoint settings):
Important: The default port changes. Check the port.
To find the endpoints and ports, run the script:
https://www.mongodb.com/developer/products/mongodb/srv-connection-strings/
Finally, enable SSL as Require.