Configure Target Endpoint

Migration Module (2.3.2) - Migrate from MongoDB to Amazon DocumentDB using Database Migration Service (DMS)

You can use AWS Database Migration Service (DMS) to migrate data to Amazon DocumentDB (with MongoDB compatibility) from any of the source data engines that AWS Database Migration Service (DMS) supports. The source engine can be on an Amazon-managed service such as Amazon RDS, Aurora, or Amazon S3. Alternatively, the engine can be on a self-managed database, such as MongoDB running on on-premises or Amazon EC2.

Create endpoint.


Create target endpoint:

  • Endpoint type: Target endpoint
  • Endpoint identifier: docdbtarget
  • Source engine: docdb


Download the Certificate, open the following url in your browser and Save the file rds-combined-ca-bundle.pem

Save it to your Downloads folder.

To get your cluster hostname, go to your Amazon DocumentDB Cluster page.


DMS Target Endpoint Parameters:

  • Server name: < you cluster endpoint >
  • Port: 27017
  • Authentication mode: password
  • Secure Socket Layer (SSL) mode: verify-full
  • CA certificate: Add new CA certificate addca
  • Certificate identifier: ca-certificate
  • User name: <the username used in Introduction Module>, or labUser if you did not complete Introduction Module
  • Password: (enter the password you set, Tim3t0change is the default if created via Cloudformation)
  • Database name: labdb


  • VPC: vpc--Labs-VPC
  • Replication instance: dmsfordocumentdb-
  • Run test runtest

After successful connection, Create the endpoint.


Check the endpoints created.


Now you can create a Migration Task from MongoDB to DocumentDB.