Trying to Migrate from MongoDB Atlas to DocumentDB

0

Hello,

I am currently trying to migrate from a MongoDB Atlas cluster to Document DB. I am having issues with a DMS Source Endpoint connection. I am getting an error regarding connecting to the cluster using the Test Connection:

Test Endpoint failed: Application-Status: 1020912, Application-Message: Failed to create new client connection Failed to connect to database., Application-Detailed-Message: Error verifying connection: 'No suitable servers found (serverSelectionTryOnce set): [Server closed connection. calling ismaster on 'next-shard-00-01.xxxxxx.mongodb.net:27017']'

When I try to use mongosh or Mongo Compass I am able to connect with no issues.

I changed some network settings in the Network Access section of Atlas to allow connections from everywhere. But still, it won't connect.

Has anyone else had a successful migration from MongoDB Atlas to DocumentDB?

The MongoDB version I'm using is 5.0.14 (API Version 1) DocumentDB is using Elastic Cluster setup.

Thanks

  • Hey so I am currently migrating my data from MongoDB to DocumentDB and want to use further use Documentdb as my permanent database. Now I first dumped the files and restored it on my documentDB cluster. I can also access the Documentdb cluster from mongoshell and I can see my database in Documentdb. Now my issue is that I am not able to use the database when I add the URI to my React application. It just doesn't work I tried several ways, but it still didn't work. What can be the issue? I even followed the documentation.

3 Answers
1
Accepted Answer

Damn it...I figured it out.

MongoDB Atlas requires TLS connection. I needed to set SSL Mode to require in order for the connection to succeed

answered a year ago
1

Hello @rePost-User-8855675

Thanks for posting in re:Post.

Verify that configured your security group and endpoint correctly and follow the steps in the below link to check it has been configured correctly.

https://aws.amazon.com/getting-started/hands-on/move-to-managed/migrate-mongodb-to-documentdb/

Try using offline method and follow the below steps.

[Migrate from MongoDB to Amazon DocumentDB using the offline method]


If the Answer is helpful, please click Accept Answer & UPVOTE, this can be beneficial to other community members.

profile picture
answered a year ago
  • Thank you for assisting me learn2skills

    I read that document already and everything works except for the Source port, which is the MongoDB Atlas.

    Also, this is a live Production DomgoDB and I cannot turn off the DB, which is why I figured using the DMS would be much better since its a live migration.

0

Hi @Hello @rePost-User-8855675,

I see you figured out the reason for the connection issue. (set SSL Mode to require)

Please feel free to add additional questions here if you'd like and I'll be happy to look internally as well to assist.

AWS
SUPPORT ENGINEER
answered a year 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.

Guidelines for Answering Questions