Using the AWS DMS to Migrate Data to an Aurora Database

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

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

Create a Target Endpoint

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 cloud_user 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

Create Source 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
  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

Additional Resources

As the Senior Solutions Architect, you have have been tasked with optimizing the data transfer to more cost-effective solutions. You have identified the cost savings of moving a MySQL database currently running on an EC2 instance to an RDS Aurora MySQL instance, and have decided to use the AWS Data Migration Service. Let's get started!

Ensure you are in us-east-1 and log in to the AWS console using the credentials provided.

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.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?