Migrating MongoDB EC2 to AWS Document DB via DMS

0

Hi,

I just want to ask. I have legacy app that hosted on MongoDB EC2 instances. I want to migrate it to AWS DocumentDB for security & manageability reason.

The DEV DB used mongodb version 4.4 and I can migrate it easily with AWS DMS. The UAT DB & PRODUCTION DB use old version of mongodb 3.2.11 & 3.2.22. I don't think it's supported by AWS DMS as stated on AWS DMS documentation. Any other way rather than just dump it and restore to the new instance? PRODUCTION data is around 200+ GB, I don't think can use mongo dump & restore to it. haha.

Thank You.

2 Answers
4

There is no need to upgrade your MongoDB version, DMS supports MongoDB version 3.0+. The documentation at https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html merely states that support for MongoDB 4.2 and 4.4 was added in DMS version 3.4.5.

profile pictureAWS
Tim_C
answered a year ago
  • ya, but it strange since I can't connect to mongodb 3.2.xx from AWS DMS. Already reachable via AWS Reachability Analysis, BindIP -> I've setup it already. So I assume it because of wire protocol from mongodb version 3.2.xx.

  • MongoServerSelectionError: Server at xxxxxx:27017 reports maximum wire version 4, but this version of the Node.js Driver requires at least 6 (MongoDB 3.6). I event can't connect from other server. :)

3

you'll need to consider alternative methods

  1. Upgrade your MongoDB instances to a supported version before using AWS DMS
  2. Perform a live migration using a custom script or tool Write a custom script or use a third-party tool (e.g., Apache Nifi, Talend, or custom-built solutions) to perform a live migration of the data from your MongoDB 3.2.x instances to AWS DocumentDB.
profile picture
EXPERT
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