Migrating MongoDB Collections to Amazon DocumentDB Using DMS
Migrating MongoDB Collections to Amazon DocumentDB Using DMS

CLOUD LABS

Migrating MongoDB Collections to Amazon DocumentDB Using DMS

In this Cloud Lab, you’ll learn to migrate your existing MongoDB collections to the fully managed AWS DocumentDB (MongoDB-compatible service) using AWS Database Migration Service (DMS).

14 Tasks

advanced

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Working knowledge of installing MongoDB on Amazon Linux machine
Hands-on experience creating Cloud9 environment and configuring it for DocumentDB
Working knowledge of creating DocumentDB cluster
Understanding of the AWS Database Migration Service
Hand-on experience creating replication instance, endpoints, and replication task
Ability to migrate existing data and change data capture (CDC) using DMS

Technologies
AWS logoAWS
DMS
MongoDB
DocumentDB
EC2
Cloud9
Cloud Lab Overview

AWS Database Migration Service is a service that offers data migration from different database sources to a number of targets within the AWS ecosystem. You can even use AWS DMS to migrate data from your on-premises database to the AWS Cloud.

In this Cloud Lab, you’ll learn to migrate your existing MongoDB collections to AWS DocumentDB using AWS DMS service. You’ll use a React application to insert data into your MongoDB and use it as a source database. Then, you’ll create a DocumentDB cluster and access it using the Cloud9 environment. You’ll create a DMS replication instance, source and target endpoints, and then configure a replication task. You’ll also see how the change data capture (CDC) works in DMS.

After completing this Cloud Lab, you’ll have enough knowledge and understanding to start working with AWS DMS and create replication tasks for your database migrations. The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Prepare Source Database
Create an EC2 Instance
Install MongoDB and Configure Replication
Connect MongoDB to an Application and Insert Data
3.Prepare Target Database
Create a Cloud9 Environment and Security Group
Create the Amazon DocumentDB Cluster
Install MongoShell and Connect to DocumentDB
4.Database Migration Service
Create a DMS Replication Instance
Create Source and Target Endpoints
Create a Replication Task
5.Change Data Capture
Test the Ongoing Changes
Troubleshoot
6.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image