Data-Centre Migration to AWS: MGN Rehost, DMS to Aurora MySQL, DataSync to EFS and a Rehearsed Cutover

Take the role of the cloud engineer who moves a parts supplier's order system out of a rented rack and into AWS: rehost the application server block by block with AWS Transform MGN, replatform MySQL 8.0 to Aurora MySQL 8.4 with AWS DMS full load and change data capture, move the invoice share to EFS with AWS DataSync, and rehearse a gated cutover with a measured write outage, reconciliation of every acknowledged order, and a rollback after AWS has taken writes. Everything is built with Terraform and driven by a Python migration tool.

Cloud Engineer - AWS. Advanced.

What you will build and explain

  • Choose rehost, replatform or retain per server and turn the business's outage and data rules into a checked wave plan.
  • Replicate a running server with AWS Transform MGN over a private link, and run a test launch that provably cannot write to production.
  • Prepare MySQL for change data capture and run AWS DMS from MySQL 8.0 to Aurora MySQL 8.4 with verify-full TLS, row validation and a reverse leg.
  • Copy a live NFS share to Amazon EFS with a DataSync agent, incremental runs and full verification.
  • Design route tables, security groups and a Route 53 private hosted zone so that the cutover is one DNS change.
  • Run a cutover with readiness gates, a write freeze and smoke tests, prove that no acknowledged order was lost, then roll back and finalise.
  • Remove everything, including what the migration services create outside Terraform.

Before you begin

  • Terraform (init, plan, apply, destroy, variables, outputs) and Linux administration (systemd, apt, /etc/fstab, journalctl); reading Python and simple SQL; VPCs, subnets, route tables and security groups; the AWS CLI with a named profile. AWS Transform MGN, AWS DMS, change data capture, AWS DataSync and cutover engineering are taught in the project.
  • An AWS account where you may create VPCs, EC2 instances, IAM roles, Aurora, DMS, DataSync, EFS, Route 53 private zones, KMS keys and secrets and initialise AWS Transform MGN, with about 24 free on-demand standard vCPUs; the AWS CLI v2, Terraform 1.14 or later and Python 3.12 or later.

Who this is for

For cloud engineers who build AWS infrastructure with Terraform and run Linux servers, read Python and SQL, and have never moved a running system with live data: rehost a server block by block with AWS Transform MGN, move MySQL 8.0 to Aurora MySQL 8.4 with DMS change data capture and a file share to EFS with DataSync, then rehearse a gated cutover that loses no acknowledged order and a rollback after AWS has taken writes.

Curriculum

Learning topics (19)
  1. Check your starting skills, account, quotas and tools

    This project is for a cloud engineer who has built infrastructure on AWS with Terraform and run Linux servers, but has not yet moved a running system with live data into AWS. This page says exactly what you are expected to know already, what the project teaches, and what you need before the first command: tools, an account, permissions and quota.

  2. Moving Parts Desk from a rented rack into AWS

    Brackenford Agri Parts takes about four hundred dealers' orders through Parts Desk, a small web application that has lived in a rented data-centre rack for six years. The rack lease ends this quarter, MySQL 8.0 reached its end of life in April 2026, and the company no longer wants to run a file server. The operations lead's rules shape everything on this page:

  3. Choosing rehost or replatform per server and writing the wave plan

    "Move Parts Desk to AWS" is not yet a plan. Each server can move in a different way, some should not move at all, and the order and the limits of the move are agreements with the business that the tools must respect. This lesson explains the choices a migration makes per server, why this project makes the ones it does, and how they become a file, migration/wave-plan.yaml, that the migrate tool checks and obeys. It assumes no migration experience.

  4. The servers you are moving, and preparing MySQL for change data capture

    Before you copy anything you need to know what you are copying: which servers there are, what each depends on, and what in the source would break the copy. In a real migration that is weeks of discovery; here the data centre is small and described in code, so this lesson reads it the way you would read a real one, and then makes the one change the migration needs before it can start. It assumes you can read a systemd unit and an /etc/fstab line.

  5. The landing VPC, the site link and the private names the cutover changes

    A migration's network has two jobs that pull in opposite directions. The copies need paths into the data centre; a test of the copy must have none. And the application must find its database and share wherever they are, without being reconfigured at the riskiest moment. This lesson shows how route tables, security groups, a site link and a private DNS zone do both. It assumes you know what a subnet, a route table and a security group are.

  6. Block-level replication with AWS Transform MGN

    Parts Desk runs on pd-app-01, a server nobody at Brackenford has rebuilt in six years. Its packages, its systemd unit, its settings and the password file in /etc/parts-desk/ were put there by hand or by a first-boot script, and nobody is sure what else is on it. Rehosting means not having to know: copy the whole server, unchanged, and run the copy in AWS. This lesson explains how AWS Transform MGN makes that copy while the server keeps running, and how this project sets it up

  7. Launch templates, post-launch actions and test launches that cannot touch production

    A continuously updated copy of pd-app-01's disk is not yet a server. This lesson follows MGN from a snapshot of that copy to a running instance, and then through the problem that makes launches delicate: the instance is a copy of production, with production's settings and password, and on a test it must not write to production. It builds on the MGN replication lesson.

  8. Full load and change data capture from MySQL 8.0 to Aurora MySQL 8.4

    Parts Desk's database takes an order every two seconds and must move to a newer MySQL in a different place, with at most a few minutes of frozen writes. Copying it once is easy; the hard part is that it keeps changing while you copy. This lesson explains how AWS Database Migration Service (DMS) copies a live MySQL database and then keeps the copy current from MySQL's binary log, and how this project configures it in both directions. It assumes you can read SQL and know what a

  9. Proving the copy is right with DMS validation and order reconciliation

    "The task is running" is not the same as "the data is the same", and at the cutover only the second matters. This project proves the copy three ways, at three moments, because each answers a different question: DMS validation while the copy runs (are the rows DMS wrote the rows it read?), checksums of both databases during the freeze (are the databases equal right now?), and the dealers' reconciliation afterwards (is every order we promised in the database that serves?). This

  10. Moving the invoice share with a DataSync agent, verification and incremental runs

    Every order Parts Desk accepts has an HTML invoice on an NFS share, and an order whose invoice is missing is, for the dealer, a broken order. The share has 20,000 files and gains one every two seconds. This lesson explains how AWS DataSync copies a live NFS share into Amazon EFS, repeatedly and with verification, and how EFS replaces the file server. It assumes you know what an NFS export and a mount are.

  11. Readiness gates, the write freeze, final synchronisation and the DNS switch

    Weeks of replication come down to a few minutes in which the system stops being in the data centre and starts being in AWS. Those minutes must keep the business's promises: dealers frozen for no more than 15 minutes, no acknowledged order lost, and a way back. This lesson walks through migrate cutover step by step, explaining why each step is there and in that order, and how to read what it reports. It builds on the lessons for the three copies and on landing network and DNS.

  12. Reverse replication and returning to the data centre after AWS took writes

    A rollback that works only in the first minute after a cutover is not much of a promise. The business asked for more: a way back to the data centre even after AWS has taken orders, until they sign off. That means everything AWS writes must already be in the data centre when you decide to go back. This lesson explains how the project keeps that true, and what migrate rollback does with it. It builds on DMS and CDC and the cutover.

  13. Identity, secrets, TLS and encryption across a migration

    A migration creates, for a while, two copies of everything sensitive: two databases with the same customer data, two sets of credentials, a link carrying both. It also introduces new actors, the migration services and their roles, with access to all of it. This lesson walks through who may do what in this project, where each secret lives and how it travels, and what is encrypted where, and is honest about the gaps a lab leaves. It assumes you can read an IAM policy.

  14. Replication lag, CDC latency, alarms and the cutover journal

    Between the day replication starts and the cutover night there may be weeks in which nothing visible happens, and every one of the three copies can quietly fall behind or stop. On the night itself, every decision depends on a number. This lesson explains which signals tell you that each copy is current, where each comes from, how the cutover gates use them, and what the lab leaves for you to add. It builds on the lessons for the three copies.

  15. Finalising, decommissioning and what each migration service leaves behind

    A migration does not end at the cutover. For days or weeks both sites exist, replication runs backwards, and the old servers wait. Ending it is a sequence of decisions, each of which removes a way back, and a list of things the migration services created that nobody will remember to delete unless someone writes them down. This lesson covers both. It builds on the rollback.

  16. Build, replicate, test, cut over and roll back, in one ordered runbook

    This runbook builds the simulated data centre and the landing environment in your AWS account, starts the three copies, runs a test launch and then rehearses the cutover and the rollback. Each numbered section is one milestone of the Step-by-Step Guide; the guide shows these sections inline, so the commands exist in one place only. The cleanup runbook removes everything, and it works from any point in this sequence.

  17. Diagnose a server that never becomes ready, a stalled replication, a validation mismatch and a refused cutover

    A migration fails in quiet ways. A replication that cannot reach its server waits; a copy that falls behind keeps running; a test instance that cannot mount its share hangs at boot. Each of the three copies, and the cutover, writes down what it did somewhere different, so diagnosis is mostly knowing where to look and in which order. The scenarios are written the way an interviewer would pose them. This page is how to practise them.

  18. Explain the migration and defend every strategy, cutover and rollback decision

    "I migrated an application to AWS" invites twenty minutes of questions about why each piece is there and what you would have done differently. The questions rehearse exactly that: what the design does, why it was chosen over the obvious alternative, and what changes when a constraint changes. This page is how to use them.

  19. Remove everything the migration created, and know what stays

    Run this when you have finished, or whenever you want the charges to stop, from any point in the deployment runbook, including after a failed step. It takes twenty to forty minutes, most of it Terraform waiting for Aurora and DMS to delete. Use the same terminal setup as the deployment: Where Commands Run and as Whom.

Practical build steps (9)
  1. Prepare your machine, your sign-in and your account

    Nothing in this milestone touches AWS or costs anything. It makes sure the commands in the next eight milestones will run, that they will run against the account you mean, and that the account can hold the lab.

  2. Build the simulated data centre and start dealer traffic

    You have no data centre, so the first thing you build is the one you will migrate from: a VPC with four Ubuntu servers at fixed addresses, a NAT gateway for their outbound traffic, Brackenford's internal DNS zone, the secrets the servers read at boot, and the DataSync agent. When this milestone ends, dealers are placing an order every two seconds on pd-app-01, and that traffic continues through every later milestone.

  3. Build the landing environment

    The landing environment is everything on the AWS side: the landing VPC with its three private route tables, the peering link that stands in for the site's VPN, Aurora MySQL 8.4, EFS, the DMS replication instance with its four endpoints, the post-launch document MGN will run, the alarms, and the DataSync locations and tasks.

  4. Initialise MGN and replicate the application server

    pd-app-01 is rehosted: copied block by block, unchanged. This milestone initialises AWS Transform MGN in the Region with a replication template that keeps the copy on the private link, installs the replication agent on the server, and lets the first full copy of its disk complete.

  5. Start the database and file copies

    The database and the invoice share are replatformed: their contents move to managed services, not their servers. This milestone prepares both databases, starts the DMS task that loads Aurora and then keeps it current, and copies the invoices to EFS with DataSync.

  6. Run a test launch

    Before anyone depends on the copy, launch it and prove it works: an EC2 instance started from the replicated disk, configured by the post-launch action, serving the migrated data from Aurora and EFS, and unable to change anything.

  7. Rehearse the cutover

    The cutover moves Parts Desk to AWS: one command that checks six gates, launches the AWS instance, freezes writes in the data centre, waits until both databases are equal and every invoice is verified, moves the three names, starts Parts Desk in AWS with a reverse copy back to the data centre, and unfreezes. The dealers' write outage is the time between the freeze and the unfreeze.

  8. Rehearse the rollback, then finalise or clean up

    The business asked for a way back even after AWS has taken orders. The rollback freezes the AWS instance, waits until the reverse DMS leg has applied every change to MySQL, copies new invoices back to the share with full verification, moves the names back, smoke-tests pd-app-01, starts a new forward leg and unfreezes.

  9. Remove everything the migration created

    Cleanup works from wherever you stopped, including a failed step. It removes what migrate created outside Terraform, destroys the landing root, removes the DataSync agent registration, destroys the data centre, and then checks that nothing tagged with the project remains.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

This project creates billable AWS resources in your own account: EC2 instances for a simulated data centre and a DataSync agent, two NAT gateways, Aurora MySQL, a DMS replication instance, EFS, AWS Transform MGN replication resources, Secrets Manager and CloudWatch. While everything runs it costs about 0.95 USD per hour at on-demand prices in the Mumbai region, plus DataSync's per-gigabyte charge; a complete build, rehearsal and cleanup takes three to four hours. Prices differ by region and change over time. AWS charges are billed by AWS and are separate from project access. No alarm in this project limits spending: run the cleanup when you finish and check that nothing is left. Brackenford Agri Parts, its dealers and its orders are fictional and synthetic. This is a learning reference, not a hosted service or a production deployment.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, such as Terraform and its providers, boto3, PyYAML, Ubuntu's packages and the agents AWS publishes, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy