Migrating to AWS: The 7 Rs, Migration Phases, Application Migration Service and Planning a Move
The Three Phases of Migration
| Phase | Goal | Activities |
|---|---|---|
| Assess | Know where you are and whether to move | Inventory servers and apps, dependencies, total cost of ownership (TCO) with Migration Evaluator, skills gap, business case |
| Mobilize | Prepare to move | Build a landing zone (multi-account, networking, security, identity), Cloud Adoption Framework plans, train people, pilot migrations |
| Migrate and modernize | Move in waves and improve | Replicate, test, cut over, optimize, modernize |
The 7 Rs
| R | Meaning | Example | Effort |
|---|---|---|---|
| Rehost (lift and shift) | Move servers as they are to EC2 | VMware VM → EC2 with Application Migration Service | Low |
| Replatform (lift, tinker and shift) | Small changes for a cloud benefit, same core design | Self-managed MySQL → RDS; app server → Elastic Beanstalk; files → EFS | Low to medium |
| Repurchase (drop and shop) | Replace with a SaaS product | On-prem CRM → Salesforce; email → Microsoft 365 / WorkMail | Medium |
| Refactor / re-architect | Redesign to be cloud-native | Monolith → microservices on ECS/Lambda, DynamoDB | High (highest long-term benefit) |
| Retire | Turn off what is not needed | Unused or duplicate apps (often 10 to 20 percent) | Very low |
| Retain (revisit) | Keep on premises for now | Needs mainframe, strict latency, recently upgraded, not ready | None now |
| Relocate | Move VMware workloads to VMware Cloud on AWS or Amazon EVS without changes | Hypervisor-level move | Low |
Exam shortcut: Fastest with no changes → Rehost. Same app but managed database → Replatform. Replace with software service → Repurchase. Cloud-native redesign → Refactor.
Discovery and Planning
| Tool | Purpose |
|---|---|
| AWS Application Discovery Service | Collect server configuration, performance and network dependency data using an agentless collector (VMware) or agents |
| AWS Migration Evaluator | Estimate TCO and right-sized AWS costs for the business case |
| AWS Migration Hub | One place to track migration progress across tools and partners; strategy and orchestration features |
| AWS Transform and Migration Hub Refactor Spaces | Help assess, modernize and incrementally refactor (check current capabilities) |
| AWS Prescriptive Guidance, Cloud Adoption Framework (CAF) | Guidance and perspectives: business, people, governance, platform, security, operations |
| AWS Migration Acceleration Program (MAP) | Funding, tools and partner help for large migrations |
AWS Application Migration Service (MGN)
MGN is the main AWS tool for rehost (lift and shift). It continuously replicates physical, virtual or other-cloud servers into a low-cost staging area in AWS and launches test and cutover instances.
text
Source server (on premises / other cloud) + AWS Replication Agent
│ continuous block-level replication (encrypted)
▼
Staging area in AWS: small replication servers + low-cost EBS volumes ← keeps cost low
│ Launch test instance (non-disruptive) Launch cutover instance
▼ ▼
Test, validate, fix Production on EC2, then finalize cutover
- Initialize MGN in the target Region and create the replication settings template (subnet, instance type, security group)
- Install the agent on each source server
- Wait for initial sync, then data stays in sync continuously (RPO of seconds)
- Set launch settings (instance type, subnet, tags, post-launch actions)
- Launch a test instance, validate, repeat as needed
- Plan the cutover window, stop the source application, wait for a final sync, launch cutover instance, switch DNS
- Finalize cutover to stop replication and clean up. Keep the source for a rollback period
bash
aws mgn initialize-service --region ap-south-1
aws mgn describe-source-servers --query 'items[].[sourceServerID,dataReplicationInfo.dataReplicationState]' --output table
aws mgn start-test --source-server-ids s-1234567890abcdef0
aws mgn start-cutover --source-server-ids s-1234567890abcdef0
aws mgn finalize-cutover --source-server-id s-1234567890abcdef0
Other Migration Services
| Service | Use |
|---|---|
| AWS Database Migration Service (DMS) | Migrate databases with minimal downtime (next lesson) |
| AWS DataSync, Snow Family, Transfer Family | Move file and bulk data (see hybrid storage lesson) |
| VMware Cloud on AWS / Amazon Elastic VMware Service | Run VMware workloads on AWS with the same tools (relocate) |
| AWS Mainframe Modernization | Replatform or refactor mainframe applications |
| AWS App2Container | Containerize .NET and Java apps running on servers |
| AWS Server Migration Service (SMS) | Older service, replaced by Application Migration Service |
| AWS Elastic Disaster Recovery | Same replication engine as MGN, used for DR |
Landing Zone First
- Before moving anything build a landing zone: accounts and OUs, Control Tower, SCPs, IAM Identity Center, VPC and connectivity (Direct Connect/VPN, Transit Gateway), central logging, security baseline (GuardDuty, Config, Security Hub), tagging and backups
- Workloads then land in a safe, governed place instead of improvised accounts
Migration Waves
| Wave | Content | Why this order |
|---|---|---|
| Wave 0 (pilot) | 1 to 3 simple, low-risk apps (a dev or internal tool) | Learn the process, fix runbooks, build confidence |
| Wave 1 | Standalone apps with few dependencies | Quick wins |
| Wave 2 and later | Groups of interdependent applications (move together to avoid latency problems) | Use the dependency map from discovery |
| Last waves | Critical or complex systems (core databases, mainframe links) | After skills and tooling are mature |
Cutover Plan Template
- T minus 2 weeks: freeze changes, final test launch, confirm rollback plan and communication list
- T minus 1 day: lower DNS TTL, check replication lag is minimal
- T zero: stop the application, final sync, launch cutover instance, validate (smoke tests, data counts)
- T plus 1 hour: switch DNS and traffic, monitor closely
- T plus 1 to 7 days: hypercare, keep the source ready for rollback, then retire it
- Afterwards: right-size, apply backups and monitoring, move to managed services, update documentation
Risks and How to Reduce Them
| Risk | Mitigation |
|---|---|
| Missed dependencies (an app calls a server nobody knew about) | Network discovery data, application owner interviews, move related servers together |
| Latency between moved and unmoved parts | Move in dependency groups, Direct Connect, testing |
| Licensing problems | Check license terms, Dedicated Hosts, License Manager, BYOL |
| Costs higher than expected after lift and shift | Right-size after migration, Savings Plans, plan modernization |
| Data transfer takes too long | Snow devices, DataSync, schedule, bandwidth increase |
| Security gaps | Landing zone baseline, scan after migration |
| People not ready | Training, cloud center of excellence, partner support |
Practice Tasks
- Classify ten sample applications with the 7 Rs and justify each choice
- Draw the MGN replication architecture and mark where the staging area lives
- Write a one-page cutover plan for a three-tier web application
- List the information discovery tools must collect to avoid missing dependencies
- Estimate how long 20 TB takes over a 200 Mbps link and decide on DataSync or Snow
Conclusion
Plan migration in three phases (assess, mobilize, migrate), classify every application with the 7 Rs, discover dependencies before moving, build a landing zone first, rehost with Application Migration Service (replicate, test, cut over), move in waves, and optimize and modernize afterwards.
Quick Summary: 3 phases; 7 Rs table; discovery tools; MGN flow + CLI; other services; landing zone; waves; cutover plan; risks.

