Database Migration Service

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

Adding to the discussion at the beginning of this module, AWS Database Migration Service is a cloud service that makes it easy to migrate relational databases, data warehouses, NoSQL databases, and other types of data stores. You can use AWS Database Migration Service (DMS) to migrate your data into the AWS Cloud, between on-premises instances (through an AWS Cloud setup), or between a combination of cloud and on-premises setups.

In the following sections, you are going to migrate data from your MongoDB collections to your Amazon DocumentDB cluster using AWS DMS and our lab environment depicted below.

onlinedms

AWS DMS uses a replication instance to connect to your source data store, read the source data, and format the data for consumption by the target data store. The AWS DMS replication instance uses endpoints that define the connections, data store types, and location information about your data stores. AWS DMS replication instances use this information to connect to a data store and migrate data from a source endpoint to a target endpoint. Most of this processing happens in memory. However, large transactions might require some buffering on disk. Cached transactions and log files are also written to disk.

A DMS replication instance has already been created by the AWS CloudFormation migrate-docdb stack.

Next, you will define the source and target endpoints

Start by going to the DMS console and clicking on endpoints to configure the MongoDB source and DocumentDB target endpoints. dms