Module 04

Application Migration

Lift and shift servers with AWS MGN, apply the Well-Architected Framework, and progressively modernize through containers to serverless.

⚙️ AWS MGN 🏗️ Well-Architected 🔄 Modernization 📈 Evolution

AWS Application Migration Service (MGN)

AWS MGN is the primary service for lift-and-shift migrations. It automates the conversion of source servers to run natively on AWS, supporting both agent-based and agentless replication with minimal downtime during cutover.

Agent-Based Replication Flow

01
Install Agent
Deploy replication agent on source servers
02
Continuous Sync
Block-level replication to staging area
03
Test Launch
Validate with test instances
04
Cutover
Launch production instances
05
Archive
Decommission source servers

Key Capabilities

Cutover Configuration

SettingDescription
Instance type right-sizingOverride default instance type for optimal performance/cost
Start instance on launchControl whether instance auto-starts after creation
Copy private IPMaintain IP addressing for application compatibility
Transfer server tagsPreserve metadata and organizational tags
OS licensingBring your own license (BYOL) or use included licensing
Note

You can cut over individual servers or multiple servers simultaneously. For each cutover, MGN deletes any previous test instance, launches a new cutover instance reflecting the latest source state, and reports success or failure.

🏦 Banking Context

AnyCompany Bank leverages MGN's non-disruptive testing capability to validate migrated application servers against production traffic patterns before committing to cutover. This is essential for payment processing servers where any unexpected behavior could impact transaction integrity.

AWS Well-Architected Framework

The Well-Architected Framework provides a consistent approach for evaluating architectures and implementing designs that scale over time. It should be applied throughout all migration phases — not just after workloads are in the cloud.

Six Pillars

🛡️
Security
Protect data & systems
⚙️
Operational Excellence
Run & monitor systems
🔗
Reliability
Recover from failures
Performance Efficiency
Use resources efficiently
💰
Cost Optimization
Eliminate waste
♻️
Sustainability
Minimize environmental impact

When to Apply

ScenarioWhy It Matters
MigrationsPrevent negative impact from workload failures; apply across all three migration phases
Workload RedesignIdentify impact of proposed changes; ensure continuous improvement
New WorkloadsAlign stakeholders to common approach; ensure availability and business continuity

Operational Excellence — Design Principles

Available Tools

AWS Well-Architected Tool — Free in-console tool for regularly evaluating workloads, identifying high-risk issues, and recording improvements over time.

Well-Architected Lenses — Domain-specific guidance that extends the framework for particular workload types (e.g., serverless, SaaS, financial services).

🏦 Banking Context

AnyCompany Bank applies the Reliability and Security pillars with particular rigor. Core banking systems require multi-AZ deployments, automated failover, and encryption at rest and in transit. The Well-Architected review process helps ensure these requirements are met consistently across all migrated workloads.

Modernization Pathways

Application modernization is an ongoing, iterative process — not a one-time event. The goal is to progressively transform legacy architectures into cloud-native designs that deliver business agility, engineering effectiveness, and operational excellence.

Three-Phase Approach

01
Assess
Analyze portfolio & identify candidates
02
Modernize
Replatform, refactor, or replace
03
Manage
Operate & continuously improve

Six Modernization Pathways

PathwayDescription
Move to Cloud NativeDecompose monoliths into microservices with event-driven architectures
Move to ContainersPackage applications in containers for portability and orchestration (ECS/EKS)
Move to Managed DatabasesReplace self-managed databases with RDS, Aurora, or DynamoDB
Move to Open SourceReduce licensing costs by adopting open-source alternatives
Move to Modern AnalyticsMigrate to cloud-native analytics platforms (Redshift, Athena, QuickSight)
Move to Modern DevOpsImplement CI/CD pipelines, infrastructure as code, and automated testing

Optimization Approaches

🏦 Banking Context

AnyCompany Bank's modernization journey is progressive: start by containerizing the payment processing monolith (reducing deployment risk), then decompose into microservices (enabling independent scaling of high-volume payment channels), and eventually adopt serverless for event-driven processes like notification delivery and reconciliation.

Architecture Evolution

Modernization typically follows a staged progression. Each stage builds on the previous one, delivering incremental value while reducing risk compared to a "big bang" transformation.

Stage 1: Migrate As-Is (Rehost)

Strategy: Lift and shift to resilient, secure networks

Architecture: Users → Route 53 → EC2 instances

Benefit: Gain cloud infrastructure benefits immediately without rewriting applications. Meet data center exit timelines.

Stage 2: Modernized Infrastructure (Rehost + Replatform)

Strategy: Add managed services for critical components

Architecture: Users → Route 53 → CloudFront → ELB → EC2 Auto Scaling → RDS

Benefit: Improved resilience with load balancing, auto scaling, and managed database. S3 + CloudFront for static assets.

Stage 3: Containerized (Refactor + Replatform)

Strategy: Move to container orchestration

Architecture: Users → Route 53 → CloudFront → ELB → Amazon ECS → RDS

Benefit: Agility and cost savings through containerized workloads. Faster deployments, better resource utilization.

Stage 4: Serverless (Full Cloud-Native)

Strategy: Complete re-architecture with managed services

Architecture: Users → Route 53 → CloudFront → API Gateway → Lambda → DynamoDB

Benefit: Zero server management, pay-per-use pricing, virtually unlimited scalability. S3 for static content, EFS for Lambda storage.

Note

Not every application needs to reach Stage 4. The right target architecture depends on the workload's requirements, team capabilities, and business value. Some applications deliver optimal value at Stage 2 or 3.

🏦 Banking Context

AnyCompany Bank's core banking ledger may remain at Stage 2 (managed infrastructure with RDS) due to its relational data model and ACID requirements. Meanwhile, the notification service and fraud detection pipeline can leap to Stage 4 (serverless) where event-driven, pay-per-use architecture aligns perfectly with variable transaction volumes.