You are on page 1of 5

Using the AWS DMS to Migrate Data to an Aurora Database - A Cloud Guruhttps://learn.acloud.

guru/handson/fb5e260a-f071-496b-8e2f-03e287e4cb99

Hands-on Labs / Lab Overview

Avg.
Avg. Start
Completion Skill Level
Time Start Lab
Time
Instant Apprentice
hour

One of the most important aspects of any migration of data to the cloud is cost optimization.
Luckily, AWS has made this relatively simple thanks to the Database Migration Service. In this
hands-on lab, we are going to use the Database Migrations Service (DMS) to migrate a MySQL
database from an EC2 server to an RDS Aurora MySQL database.

Successfully complete this lab by achieving the following learning objectives:

Create Replication Instance


1. Name our replication instance aurorareplication
2. Give it a Description of mysql to aurora
3. Leave most of the defaults, but change the Allocated storage from 50 to 10
4. Leave Multi-AZ unchecked
5. Uncheck publicly accessible
6. Choose the one with Lab_VPC in the title from the dropdown, but for VPC security
group select the security group for our databases.
7. Multi AZ: Choose Dev or test workload (Single-AZ)
8. Uncheck the Publicly accessible box
9. Click Create

Create Endpoints

1 of 5 11/17/2021, 2:23 PM
Using the AWS DMS to Migrate Data to an Aurora Database - A Cloud Guruhttps://learn.acloud.guru/handson/fb5e260a-f071-496b-8e2f-03e287e4cb99

Note: The lab uses an RDS MySQL instance target to stand in for an Aurora DB to speed the
lab's setup for you. The migration process is the same.

1. Start off with our Target Endpoint


2. Check the box for RDS instance
3. Select new-db for the RDS instance
4. Leave defaults:

Target Engine: mysql


Keep the default Server name
Leave Port: set to 3306
leave as User Name

5. Copy the password from the Linux Academy Credentials page and paste it in
6. Run test
7. Create the Target Endpoint

1. Select Source Endpoint


2. Do not check the box for RDS instance
3. Set Endpoint identifier to my-db-source
4. Leave the defaults, and set Source engine to mysql
5. Set Server Name to the private IP address found on the LA credentials page
6. Leave Port set at 3306, and leave cloud_user as User name
7. Copy the password from the LA credentials page and paste it into the Password field
8. Run a test
9. Create the source endpoint

Create the Migration Task


1. Add Identifier: aurorareplicationtask
2. Choose our Replication Instance
3. Choose our Source Endpoint
4. Choose our Target Endpoint
5. Check the box to make sure the task starts on creation
6. Choose Migration Type
7. Choose to not include large objects column
8. Do not enable validation because it will take longer for creation
9. Leave CW logs unchecked
10. Leave default for Table mappings

2 of 5 11/17/2021, 2:23 PM
Using the AWS DMS to Migrate Data to an Aurora Database - A Cloud Guruhttps://learn.acloud.guru/handson/fb5e260a-f071-496b-8e2f-03e287e4cb99

11. Create new Selection Rule:

Leave Schema as default


Leave Table name as default
Set Schema name to classicmodels
Leave Action set to Include

12. Create the task

Your lab Using the AWS DMS to Migrate Data to an Aurora Database has no expected wait
time. Let's go!

Start Lab

Hands-On-Labs are real environments created by industry experts to help you learn. These
environments help you gain knowledge and experience, practice without compromising your
system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-On
Labs: practice your skills before delivering in the real world.

Browse Labs

Cloud Playground is another innovative lab feature. Within seconds you can spin-up up to 9 Linux
Virtual Machines. Need a Windows VM? It does that too! With AWS or Google Cloud sandboxes,
you can get instant access to a Cloud Environment with no need for an external account and no
risk of extra costs! All found in the Playground on the main navigation.

Open Sandboxes

YOUR LAB HISTORY

You have not attempted this lab

3 of 5 11/17/2021, 2:23 PM
Using the AWS DMS to Migrate Data to an Aurora Database - A Cloud Guruhttps://learn.acloud.guru/handson/fb5e260a-f071-496b-8e2f-03e287e4cb99

London, United Kingdom


Washington DC, USA
Melbourne, Australia
Austin, TX, USA

AWS Courses Online


Cloud Training
AWS Certifications
AWS Certified Solutions Architect
Membership

ACG Blog
ACG on Medium
Support
AWS This Week
The Cloudcast

Our Story
Our Gurus
Careers
Newsroom
Serverlessconf

4 of 5 11/17/2021, 2:23 PM
Using the AWS DMS to Migrate Data to an Aurora Database - A Cloud Guruhttps://learn.acloud.guru/handson/fb5e260a-f071-496b-8e2f-03e287e4cb99

© 2021 A Cloud Guru Ltd. Code of Conduct Privacy Policy Terms of Use

5 of 5 11/17/2021, 2:23 PM

You might also like