Plan a staged migration to AWS with validation
Plan a staged migration using Application Migration Service, DMS and DataSync concepts, with validation at each step.
By Invicly Tech, , in AWS Cloud Engineering. About 11 minutes to read.
In short
A migration moves existing servers, databases and files into AWS in planned waves rather than all at once. AWS Application Migration Service rehosts servers, AWS Database Migration Service moves database data while the source keeps running, and DataSync copies file shares and object data. Each wave ends with validation and a cutover that has a rollback plan.
Think of it like this: Moving house room by room, checking each room works in the new place before you hand back the keys to the old one.
Explained simply
Many companies already run applications on their own servers. Moving them to AWS is a migration. Doing it all in one weekend is risky, so teams move in waves: a few related applications at a time, each tested before the next wave starts.
First you need a list of what exists: servers, databases, file shares and which ones talk to each other. Then you decide what to do with each application. Some can be retired, some stay where they are, many are moved as they are, and a few are changed to use managed services.
AWS has a tool for each kind of thing to move. Application Migration Service copies whole servers into EC2. Database Migration Service copies database data and keeps copying new changes while the old database stays online. DataSync copies files from file shares into S3, EFS or FSx.
The final switch is called cutover. Because data has been copied continuously, cutover only has to catch up the last few changes, switch users over and run checks. You keep the old system ready for a while, so if something is wrong you can switch back.
Press Play on a diagram to walk through it one step at a time.
- 1Discover
Inventory servers, databases, file shares, dependencies
- 2Plan waves
Group by application; pick a strategy per app
- 3Replicate
MGN for servers, DMS for data, DataSync for files
- 4Test
Launch test copies and validate
- 5Cut over
Final sync, switch DNS, smoke test
- 6Decommission
Keep rollback window, then retire the source
- Keep as is
- Retire: switch off
- Retain: leave for now
- Move as is
- Rehost: lift and shift to EC2
- Relocate: move a VMware estate
- Change a little
- Replatform: managed database or containers
- Repurchase: move to SaaS
- Change a lot
- Refactor: redesign for cloud-native services
In depth
Inventory, strategies and waves
Start with an inventory: hostname, operating system, CPU and memory use, storage, application owner, and network connections. Connection data matters most, because it shows which servers must move together. A nightly batch job that reads a database on another host will break if only one of them moves.
For each application choose a strategy, often called the 7 Rs: retire (switch off), retain (keep for now), rehost (lift and shift to EC2), relocate (move a VMware estate as is), replatform (small changes, such as a managed database), repurchase (move to a SaaS product) or refactor (redesign, for example into serverless).
Then plan waves. The first wave should be small and low risk so the team learns the process. Group dependent applications together, and schedule critical systems once the runbook is proven.
AWS Migration Hub closed to new customers on 7 November 2025; AWS directs new customers to AWS Transform for discovery and planning help. A spreadsheet still works for a small estate.
- Inventory dependencies, not just servers
- Pick one of the 7 Rs per application
- First wave: small, low risk, a learning run
Rehosting servers with Application Migration Service
Application Migration Service (MGN) is the recommended AWS service for lift and shift. You install the AWS Replication Agent on each source server. It copies the disks block by block to a staging area subnet in your account, which uses small replication servers and low-cost EBS volumes, and then keeps them in sync continuously.
When the initial sync is done you launch a test instance from the latest data using a launch template you control: instance type, subnet, security groups. Check that the application starts and works. Mark the server ready for cutover. At cutover, stop writes on the source, let the last changes replicate, launch the cutover instance and switch traffic.
MGN has a free period per source server (90 days at the time of writing), but the staging resources, EBS snapshots and the launched instances are billed as usual.
- Source server to Staging area: Agent installed; initial block-level copy1Agent installed; initial block-level copy
- Source server to Staging area: Continuous replication of changes2Continuous replication of changes
- Staging area to Test or cutover instance: Launch test instance from latest data3Launch test instance from latest data
- 4Validate the app, then mark readyTest or cutover instance to Test or cutover instance: Validate the app, then mark ready
- Staging area to Test or cutover instance: Launch cutover instance after final sync5Launch cutover instance after final sync
Moving databases with DMS
AWS Database Migration Service connects a source endpoint and a target endpoint and runs a migration task on a replication instance or with DMS Serverless. Task types are full load (copy existing data), CDC only (copy ongoing changes) or full load plus CDC, which is the usual choice for keeping downtime short.
For the same engine, such as PostgreSQL to Amazon RDS for PostgreSQL, the schema moves easily, and native tools are also an option. For a change of engine, such as Oracle to PostgreSQL, convert the schema first with DMS Schema Conversion or the AWS Schema Conversion Tool, then move data with DMS.
Turn on data validation: DMS compares rows between source and target and reports mismatches. Watch CDC latency; at cutover it should be near zero. DMS does not copy everything: secondary indexes, users, sequences and some object types need separate steps, so check the docs for your engine.
- Full load plus CDC for minimal downtime
- Schema conversion first when engines differ
- Enable validation and check table statistics
- CDC latency near zero before cutover
Copying files with DataSync, and cutting over
AWS DataSync copies data between file shares (NFS, SMB), HDFS, other object stores and AWS storage such as S3, EFS and FSx. For on-premises sources you deploy a DataSync agent as a virtual machine near the data. You create a source location, a destination location and a task. Runs are incremental: later runs copy only what changed. The task can verify data integrity and limit bandwidth so it does not flood the office link.
A safe cutover follows a checklist. Days before: lower DNS TTLs, run a rehearsal, agree go and no-go criteria. On the day: freeze writes, run the final sync (last DataSync run, DMS latency zero, MGN cutover launch), switch DNS or connection strings, run smoke tests and check key business numbers. Keep the source untouched and ready for the agreed rollback window, then decommission.
- Rehearse cutover at least once
- Go and no-go: validation clean, latency zero, smoke tests pass
- Rollback: point DNS back at the source
- Decommission only after the rollback window
Learn it in 5 short steps
About 30m each. Track them with a timer in your plan.
- 1Inventory and group workloads~30m
- 2Rehost servers with Application Migration Service~30m
- 3Move databases with DMS~30m
- 4Copy files with DataSync~30m
- 5Validate and cut over~30m
Key points
- Choose a strategy per application: retire, retain, rehost, relocate, replatform, repurchase or refactor.
- Group servers that talk to each other into the same wave to avoid slow cross-site calls.
- Replicate continuously so the final cutover only moves the last few changes.
- Every cutover has go and no-go checks and a tested way back to the source.
- AWS Migration Hub closed to new customers on 7 November 2025; AWS points new customers to AWS Transform.
Key terms
Tap a card to flip it. 0/5 known
Examples
Planning waves for a small estate
The estate: a file server (SMB, 2 TB), a PostgreSQL server, two app servers that use it, a reporting server used by two people, and an old FTP server nobody uses. Step 1: retire the FTP server after confirming no traffic for 30 days. Step 2: wave 1 is the reporting server, rehosted with MGN, as a low-risk rehearsal. Step 3: wave 2 is the database (replatform to RDS with DMS full load plus CDC) together with the two app servers (rehost with MGN), because they depend on each other. Step 4: the file share moves to FSx or S3 with DataSync in parallel, with a final incremental run at cutover.
A DMS validation check before cutover
Prerequisites: a running full load plus CDC task with validation enabled. Step 1: check that every table has finished its full load. Step 2: read validation state and counts per table. Step 3: confirm CDC latency is low in the CloudWatch metrics CDCLatencySource and CDCLatencyTarget. Expected evidence: all tables show validated with zero failed records. If any table shows mismatches, fix and revalidate before cutover; do not proceed.
aws dms describe-table-statistics \
--replication-task-arn <task-arn> \
--query 'TableStatistics[].[TableName,TableState,ValidationState,ValidationFailedRecords]' \
--output tableQuick reference
- 7 Rs: retire, retain, rehost, relocate, replatform, repurchase, refactor
- Servers: Application Migration Service (MGN); databases: DMS; files: DataSync
- DMS full load plus CDC keeps the source online until cutover
- Engine change: convert schema with DMS Schema Conversion or AWS SCT first
- DataSync runs are incremental and can verify data and limit bandwidth
- Lower DNS TTLs days before cutover; keep the source for a rollback window
- Migration Hub is closed to new customers since 7 Nov 2025; see AWS Transform
Common mistakes
- Migrating a server without its hidden dependencies, such as a nightly job on another host.
- Forgetting to lower DNS TTLs days before cutover, so the switch takes hours to spread.
- Turning off the source on cutover day, leaving no way back.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
Choose one of the 7 Rs for each: a CRM you could replace with a SaaS product; a Windows app server you just need off old hardware; a test server nobody has logged into for a year.
- Exercise 2medium
Write a cutover checklist for moving a PostgreSQL database with DMS and its app server with MGN.
- Exercise 3hard
Design a migration of a 2 TB SMB file share used during office hours, with less than 30 minutes of downtime, using DataSync. Explain how you prove no files were lost.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Can I practise a migration without paying much?
- Yes. Use a small virtual machine on your laptop as the source server and a tiny PostgreSQL database with synthetic data. Keep the replication short, stop the DMS task and terminate instances afterwards. You can also do the planning steps as a design-only exercise.
- Should I refactor everything while migrating?
- Usually not. Rehosting first is faster and lower risk; you can modernise afterwards once the workload runs in AWS and you understand it better.
- What replaced AWS Migration Hub?
- Migration Hub stopped accepting new customers on 7 November 2025, and AWS points new customers to AWS Transform for similar capabilities. Existing customers can keep using Migration Hub.