Cloud Migration
Many organizations still run most of their systems in their own data centers. These are often costly to operate: hardware must be bought and refreshed every few years, facilities, power, cooling and specialized staff are paid for whether the capacity is used or not, and every new project waits weeks or months for servers. They are also often vulnerable: aging hardware and operating systems past their end of support, patching that lags behind, a single site without a real disaster recovery plan, and security controls that depend on a few overloaded people.
Moving to a public cloud provider addresses many of these problems. The migration may be a straightforward lift and shift, moving systems as they are. It may also include software-level modernization: changing the architecture to be cloud native, using managed cloud capabilities, and using infrastructure efficiently, paying only for what is used instead of provisioning large servers for peak load that sit mostly idle and still run into scalability limits when demand grows.
Why migrate?
| Driver | On-premises today | In the cloud |
|---|---|---|
| Cost structure | Large upfront investments (CAPEX), capacity bought for peak load years in advance | Pay per use (OPEX), capacity follows demand |
| Utilization | Servers sized for peak load and often lightly used most of the time | Autoscaling and scale to zero; resources added and removed as needed |
| Scalability | Limited by hardware already in the racks; growth requires procurement | Capacity available in minutes, in many regions |
| Speed | Weeks to provision a server | Self-service in minutes through provisioning |
| Resilience | Often one or two sites; disaster recovery tested rarely | Multiple availability zones and regions as standard building blocks |
| Security | Physical security, patching and hardware lifecycle all in-house | Provider secures the infrastructure; customer secures its configuration and data (see the shared responsibility model) |
| Capabilities | Everything built and operated in-house | Hundreds of managed services: databases, messaging, analytics, AI |
The cloud is not automatically cheaper. Moving servers one-to-one, sized as they were on-premises and running 24/7, often costs more than the data center. The savings come from right-sizing, elasticity, managed services, and the operational discipline to manage cost continuously (FinOps).
Migration strategies: the 7 Rs
Not every application should be migrated the same way. A widely used classification, described for example in the AWS migration strategies, is known as the 7 Rs:
| Strategy | What it means | Effort | Cloud benefit | Typical candidates |
|---|---|---|---|---|
| Retire | Switch the application off | Very low | Removes cost entirely | Unused or duplicate applications, often more than expected once the portfolio is examined |
| Retain | Keep it on-premises for now | None | None | Applications with hard constraints, or scheduled for retirement soon |
| Rehost (lift and shift) | Move virtual machines as they are | Low | Data center exit, faster provisioning | Large numbers of stable applications, deadline-driven exits |
| Relocate | Move a whole virtualization platform (for example VMware) to the cloud | Low | Fast exit with minimal change | Large VMware estates |
| Replatform (lift and reshape) | Move with targeted changes, such as a managed database instead of a self-managed one | Medium | Less operations work, better resilience | Applications with standard databases and middleware |
| Repurchase (drop and shop) | Replace with a SaaS product | Medium | No infrastructure to run at all | CRM, HR, ticketing, email and other generic capabilities |
| Refactor (re-architect) | Redesign to be cloud native | High | Full elasticity, pay per use, faster delivery | Core, differentiating applications with scaling or agility needs |
From left to right: more effort and change, and more benefit from the cloud.
Lift and shift or modernize?
Both have their place, and most migrations combine them:
- Lift and shift first is fastest when there is a hard deadline, such as a data center contract ending or hardware reaching end of life. It reduces risk by changing one thing at a time. The downside: the old architecture, with its inefficiencies, moves to an environment where you pay for every hour of every oversized server.
- Modernize during migration brings the benefits sooner, but takes longer and carries more risk.
- Migrate, then modernize is a common compromise: rehost or replatform quickly, then modernize the applications where it pays off most, with the data center already closed.
Decide per application, based on its business value and expected lifetime. A system to be replaced in two years deserves a quick rehost. A core system that will live for ten more years deserves modernization.
Cloud-native modernization
Modernization changes the architecture to make use of what the cloud does best.
From fixed capacity to elastic capacity
| On-premises pattern | Cloud-native alternative | Benefit |
|---|---|---|
| Large server sized for peak load | Smaller instances or containers with autoscaling | Pay for average load; scale for peaks |
| Self-managed database cluster | Managed database, such as Amazon Aurora | Backups, patching, replication and failover handled by the provider |
| Self-managed message broker | Managed messaging, such as Amazon SQS or Amazon MSK (Kafka) | No broker operations; scales with load |
| File shares and NAS | Object storage | Practically unlimited, durable, cheap, with lifecycle rules |
| Nightly batch on a dedicated server | Event-driven or scheduled serverless functions | Runs only when needed, pays per execution |
| Manually configured servers | Infrastructure as code and immutable deployments | Reproducible, auditable environments |
Cloud-native applications are typically stateless (state lives in managed databases and caches), horizontally scalable, configured through the environment, and deployed automatically, as described in the Twelve-Factor App principles. See infrastructure for an overview of containers, Kubernetes, PaaS and serverless options.
The migration journey
Cloud providers describe the journey in their adoption frameworks: the AWS Cloud Adoption Framework, the Microsoft Cloud Adoption Framework and the Google Cloud Adoption Framework. The phases are broadly the same.
1. Assess
- Inventory all applications, servers, databases and their owners. The systems inventory is the starting point; discovery tools fill in technical details.
- Map dependencies between applications: which systems talk to each other, how often, and how much data. Systems with many dependencies must move together or need careful planning for latency.
- Build the business case: current total cost of ownership versus the expected cloud cost, migration cost and benefits.
- Choose a strategy (7 R) per application, and record significant decisions as ADRs.
2. Mobilize
Prepare the foundations before moving applications:
- Landing zone: account structure, network, identity, security baseline, logging and guardrails, created as code (see provisioning, including AWS Control Tower).
- Connectivity between the data center and the cloud during the transition, for example with AWS Direct Connect or Azure ExpressRoute.
- Platform capabilities: observability, identity and access management and security ready for the first workloads.
- People: training, a cloud center of excellence or platform team, and updated operating processes.
- Pilot: migrate a few low-risk applications end to end to validate the approach.
3. Migrate and modernize in waves
Group applications into waves of related systems that move together, ordered by dependencies, risk and business priority. Each wave follows the same repeatable steps: prepare, replicate, test, cut over, and decommission the old servers.
Migration tooling helps automate the work:
| Provider | Tools |
|---|---|
| AWS | AWS Transform MGN (Application Migration Service) for rehosting servers, AWS Database Migration Service, and AWS Transform for AI-assisted modernization |
| Azure | Azure Catalyst (formerly Azure Migrate) for discovery, assessment and migration |
| Google Cloud | Migrate to Virtual Machines |
4. Operate and optimize
Migration is not the end. The benefits come from continuous optimization:
- FinOps: shared responsibility for cloud cost between engineering, finance and business, following the FinOps Framework. Cost visible per team and system through consistent tagging.
- Right-sizing: adjusting instance sizes to actual usage, typically soon after migration when real usage data is available.
- Commitment discounts for steady baseline load, such as AWS Savings Plans or reserved capacity, and spot capacity for interruptible work.
- Switching off non-production environments outside working hours.
- Architecture reviews against the AWS, Azure or Google Cloud Well-Architected Frameworks.
- Ongoing modernization of the applications that were rehosted.
Things to consider
- Data gravity and latency. Applications that exchange large volumes of data with each other should move together. Splitting them between the data center and the cloud for a long time leads to latency and data transfer costs.
- Egress costs. Moving data into the cloud is usually free; moving it out is not. Design data flows with this in mind.
- Licensing. Commercial software licenses (databases, operating systems, enterprise products) may have different terms in the cloud. Check them early; they can change the business case.
- Compliance and data residency. Choose regions and services that meet regulatory requirements. Some workloads may need to stay in a specific country.
- Contracts and depreciation. Data center leases, hardware that is not yet depreciated, and support contracts influence the timing.
- What stays. Some systems may stay on-premises for good reasons. Plan a hybrid setup for them rather than treating them as an exception.
- Skills. Operating in the cloud requires different skills: infrastructure as code, cloud security, cost management. Invest in them before the first wave.
The role of the architecture repository
A data center exit touches every system. The architecture repository keeps the migration manageable:
| Element | Use in the migration |
|---|---|
| Systems inventory | Scope, owners, criticality and lifecycle status of every application |
| Dependencies and data flows | Wave planning, and identifying systems that must move together |
| Infrastructure inventory | Servers, databases and storage per application, current and target |
| Decisions | 7 R choice per application, recorded as ADRs with the reasoning |
| Technology radar | Target technologies and managed services to adopt, and what to retire |
| Migration status | Progress per application and per wave, visible to everyone |
Applications marked Retire during assessment are a direct link to organizing legacy spaghetti: a migration is a good moment to consolidate duplicate systems instead of moving all of them.
Common pitfalls
- Lift and shift without optimization. Moving oversized servers that run 24/7 and then being surprised by the bill.
- Migrating everything. Not using the assessment to retire or replace applications that are no longer needed.
- Skipping the landing zone. Moving applications before identity, network, security and cost controls are in place, and fixing it later under pressure.
- Modernizing everything at once. Turning a migration into a multi-year rewrite with no data center exit in sight.
- Treating the cloud as just another data center. Keeping manual processes, ticket-based provisioning and static capacity planning, and missing most of the benefits.
- No ownership of cost. Cloud spend that is nobody's responsibility grows quietly until it becomes everyone's problem.