What is AWS Database Migration Service?

Data storage archive concept
Voiced by Amazon Polly

AWS Database Migration Service is a simple and cost effective way to migrate live, petabyte scale databases both into and out of the AWS Cloud with virtually no downtime.  Those databases could be hosted on premise, already in the AWS cloud, or in another cloud.

How does AWS Database Migration Service Work?

AWS Database Migration Service (DMS) sets up and manages a database replication instance on AWS – effectively a replication server.  All changes from the primary database are copied to the replica, keeping both databases in sync.

DMS handles conversion from one database platform to another, and actively monitors the replication instance to ensure it is always available.  The service is self healing and will automatically create a new replication instance in the event of a failure.

DMS can replicate from any supported source database engine to any supported target database engine – see below for supported sources and targets.

If switching database engines, AWS provides the AWS Schema Conversion Tool to convert the existing database schema.  This will convert tables, indexes and most application code to the target database engine.  There is a schema conversion tool client available for Windows, Mac and Linux desktop operating systems.

Migrating a database is as easy as creating the target database, migrating the database schema, setting up the data replication process and initiating the migration.  This process only takes a few minutes in the AWS console.  Once the 2 databases are fully synchronised, you can simply switch over to the replica database and use it in production.

What Database Technologies are supported?

DMS Databases

AWS DMS supports a range of the most widely used source and target database engines.

Supported source engines include:

  • Oracle
  • Microsoft SQL Server
  • MySQL
  • MariaDB
  • PostgreSQL
  • Db2 LUW
  • SAP
  • MongoDB
  • Amazon Aurora

Supported target engines include:

  •  Oracle
  • Microsoft SQL Server
  • PostgreSQL
  • MySQL
  • Amazon Redshift
  • Amazon S3
  • Amazon DynamoDB

What does it cost to use AWS Database MIgration Service?

AWS DMS charges for the compute resources that you consume with the replication instance during the migration.  Compute pricing differs by region and will depend on the instance type that you select for the DMS instance, and whether or not you select a single availability zone or multiple availability zone deployment. In London (eu-west-2) there are 13 instance options ranging from t2.micro at $0.021 per hour right up to r4.8xlarge at $8.64 per in a multi AZ configuration.

Data transfer in to AWS (ingress) is always free of charge.  If you are using DMS to migrate a database out of AWS, you will be charged for data transfer out (egress).

If you are migrating to the following AWS database services, you can use DMS free of charge for up to 6 months:

  • Amazon Aurora
  • Amazon Redshift
  • Amazon DynamoDB
  • Amazon DocumentDB (with MongoDB compatibility)

How Secure is AWS Database Migration Service?

Data migrated with AWS DMS is encrypted both in transit and at rest.  At rest data is encrypted using AWS Key Management Service (KMS) and in flight data is encrypted with SSL.  But like all AWS services, the AWS Shared Responsibility model applies, and customers should ensure that they have set up appropriate Identity and Access Management (IAM) roles and policies to control access to DMS resources.  Customers are also responsible for managing the network security of the Virtual Private Cloud (VPC) that the DMS resources are deployed in.

What if your Database is Huge and you are in a Hurry?

If you are running a multi terabyte or petabyte database and you want to be able to transfer it quicker than your wire speed will allow, then you are in luck as AWS DMS can use AWS Snowball Edge.

Snowball Edge is a portable, AWS owned and supported appliance that can be used to synchronize data locally, and then be shipped to AWS, rather than replicating all of your data over the wire.

Additional charges will apply for use of the Snowball Edge device.

So there you have it – a whistle-stop tour of AWS DMS.

You Might Be Also Interested In These...

Relational Database Service

AWS RDS Pricing & Cost Optimization Explained

E.F. Codd introduced the concept of relational databases (RDS) in the 1970s, the basis for which was Structured Query Language (SQL). Thanks to Codd, we no longer have to deal with defining each individual application’s data structure in a database or connecting to a physical server. Moreover, the SQL language quickly became the standard, with […]

View Post
Data Driven Organization

11 Key Announcements by Swami Sivasubramanian at re:Invent 2021

On the third day of AWS re:Invent 2021, Dr Swami Sivasubramanian took to the stage to delivery his keynote about all things data and machine learning.  Today the crowd were warmed up by dancing DJ Jen Lasher, who was very energetic for 8:30am! After setting the scene with the explosion of both structured and unstructured […]

View Post
Amazon EC2

How to Change or Upgrade an EC2 Instance Type

EC2, or Elastic Compute Cloud, is Amazon Web Services IaaS (Infrastructure as a Service) offering – essentially it is a service for running virtual machines in the AWS cloud.  I wrote an earlier post about EC2 and all the different instance types titled AWS EC2 – Everything You Need To Know About EC2 Instances which touched […]

View Post
ebook featured image

5 Steps to a Successful

AWS Migration