What a cloud migration is
A cloud migration moves applications, data and the infrastructure underneath them from an existing environment (a server room, a hosting provider, another cloud) to a cloud provider. It is decided application by application: for each one you pick a strategy among seven, the "7 Rs", then you organise the move in a migration plan that sets the order, the cutover method and the rollback.
This article first goes through the 7 Rs as AWS documents them, then walks through a complete migration plan, with an outline you can copy. The examples refer to AWS, but the method applies to any provider.
The 7 Rs of cloud migration according to AWS
AWS Prescriptive Guidance defines a migration strategy as the approach used to migrate a workload into the cloud, and lists seven: retire, retain, rehost, relocate, repurchase, replatform, and refactor (or re-architect).
Retire
The application is decommissioned or archived. This is the strategy for applications that no longer deliver value, or whose operating system and components are no longer supported. AWS suggests relying on usage data: an application with no inbound connection for the last 90 days is a candidate.
Retain
The application stays where it is, at least for now. The reasons AWS lists include data residency requirements, a dependency on another application that must move first, specialised hardware with no cloud equivalent, or waiting for the vendor's SaaS version.
Rehost ("lift and shift")
The application is moved as it is, with no change at all. It is the most direct way out of a data centre, without cloud-specific optimisations: AWS notes that an application is easier to optimise once it already runs in the cloud. On AWS, rehosting can be automated with AWS Transform MGN (formerly AWS Application Migration Service), which continuously replicates source servers at block level before cutover.
Relocate
A set of servers is transferred from an on-premises platform to the cloud version of that same platform, with no new hardware, no rewrite and no change to how operations run. AWS also puts under this heading the move of resources to another VPC, Region or account.
Repurchase ("drop and shop")
The application is replaced by a different product, most often a SaaS offering. The work shifts to data migration, user training and interfaces with the rest of the information system.
Replatform ("lift, tinker and shift")
The application is moved with a limited level of optimisation, to run it more efficiently or reduce costs. The example AWS gives is moving a Microsoft SQL Server database to Amazon RDS for SQL Server. Moving virtual machines into containers without code changes also belongs here.
Refactor or re-architect
The application's architecture is modified to take advantage of cloud-native features. AWS describes it as the most complex and costly strategy, because you modernise while you migrate. For a large migration, AWS recommends rehosting, relocating or replatforming first, and modernising once the migration is complete.
Comparison table of the 7 strategies
| Strategy | What changes | Effort | When to choose it |
|---|---|---|---|
| Retire | The application is shut down, its data archived | Low | No remaining use, functional duplicate, unsupported stack |
| Retain | Nothing for now | None in the short term | Data residency constraint, specific hardware, unresolved dependency |
| Rehost | Hosting only | Low to moderate | Data centre exit deadline, stable application, little time |
| Relocate | The hosting platform, like for like | Low | Virtualised estate to move in bulk, change of Region or account |
| Repurchase | The software itself | Variable: data migration, integration, change management | Standard need covered by a product on the market |
| Replatform | Some components: managed database, current OS, containers | Moderate | Operational gain wanted without a rewrite |
| Refactor | The architecture and part of the code | High | Strategic application held back by its current architecture |
The effort shown is a relative order of magnitude that depends on the state of each application.
How to choose a strategy, application by application
The choice is not made for the whole estate but for each application. Five questions are usually enough, asked in this order.
- Is the application still used? If nobody can say who uses it, measure its traffic before planning its migration. If not: retire.
- Can it move now? Regulatory constraint, specific hardware, dependency on an application that has not moved: retain, with a review date.
- Does a product on the market cover the need? If the application carries nothing specific to your business: repurchase.
- Is it strategic and held back by its architecture? If so, modernizing the application is justified, but separate the two workstreams where you can: migrate first, modernise afterwards.
- Otherwise: rehost or replatform. Replatform if a simple gain is within reach (managed database, current operating system), rehost if the deadline comes first.
Record the decision and its justification in the inventory.
The migration plan, step by step
AWS breaks a migration into three phases: assess, mobilize, then migrate. The plan below follows that logic and details it in ten steps.
1. Inventory and dependency mapping
List applications, servers, databases, the flows between them, scheduled jobs, file shares, certificates and licences. For each application, note a business owner, a technical owner, its criticality and the acceptable downtime windows.
Dependency mapping is the most underestimated part. An application migrated alone while it talks constantly to a database left on premises will suffer the latency of the network link. Dependencies shape the migration waves.
2. Target architecture and landing zone
The landing zone is the foundation the applications will arrive on. AWS defines it as a well-architected, multi-account environment based on security and compliance best practices; the AWS Control Tower service is used to set it up and govern it.
Decide before the first migration: the account structure, the network addressing plan and the link with the existing environment, identity management, logging, backups and infrastructure as code. For the detail of an application architecture on AWS, see our article on architecting PHP on AWS, from MVP to scale.
3. Cost estimate
Price three separate items:
- The target running cost: compute, storage, databases, outbound traffic, support. The AWS Pricing Calculator lets you model it service by service.
- The project cost: scoping, building the landing zone, migration, testing, training.
- The cost of the parallel-run period, during which the old and new environments operate side by side. It is often forgotten, and it grows with every postponed cutover.
4. Security, GDPR and data location
In the cloud, security is shared. Under the AWS shared responsibility model, the provider protects the infrastructure that runs its services; service configuration, access management, encryption and application security remain yours.
If you migrate personal data covered by the GDPR, four points need attention:
- The processor contract. The cloud host acts as a processor, and Article 28 of the GDPR requires a written contract setting out, among other things, the subject matter, duration, nature and purpose of the processing.
- Security of processing. Article 32 asks for measures appropriate to the risk and mentions encryption, the ability to restore access to data after an incident, and regular testing of the measures.
- Transfers outside the European Union. The GDPR does not require data to be hosted in a particular member state. It does regulate transfers to a third country: they require an adequacy decision or appropriate safeguards, such as standard contractual clauses (Chapter V, Articles 44 to 46). Choosing a Region located in the Union, for example Europe (Paris), does not remove the need to check where support staff and sub-processors operate.
- Documentation. Update the record of processing activities (Article 30).
Some sectors add their own rules. In France, hosting personal health data in digital form requires a host that holds a certificate of conformity (Article L. 1111-8 of the Public Health Code), and the SecNumCloud qualification from ANSSI, the French cybersecurity agency, may be requested by your sector or your customers. This is general information: have your situation validated by your data protection officer or legal counsel.
5. Migration waves
Group applications into waves according to their dependencies and criticality.
- Pilot wave. One or two applications that are low in criticality but representative, to validate the landing zone, the tools and the runbook.
- Following waves. Applications that depend on each other move together, in rising order of criticality.
- Final waves. The most sensitive applications, once the method runs smoothly.
Each wave has a content, a date, an owner and exit criteria.
6. Data migration and cutover options
Data dictates the length of the interruption. There are three approaches.
| Option | Principle | Interruption | Best suited to |
|---|---|---|---|
| Single cutover | Stop, full copy, restart on the target | The duration of the copy and the checks | Modest volumes, accepted maintenance window |
| Continuous replication, then short cutover | The target is fed continuously; cutover only covers the last delta | Short | Large databases, continuous activity |
| Progressive cutover | A growing share of traffic or users is directed to the target | Very low, but both environments coexist | Applications able to run in parallel |
For replication, AWS Database Migration Service supports one-time migrations as well as ongoing replication of changes, and offers schema conversion when the database engine changes.
Prepare the network cutover too: lower the time to live of DNS records a few days before, and list everything that points to the old address.
7. Rollback plan
Write it before the cutover, not during it. It answers four questions: which criteria trigger the rollback, who makes the decision, until what time it remains possible, and what happens to the data written to the target in the meantime. Without reverse replication or a re-entry procedure, a late rollback loses data. Until the observation period is closed, the old environment stays intact.
8. Tests
Four families of tests for every wave: functional (business journeys give the same results), performance (compared with a baseline measured before migration), security (access, open flows, secrets, encryption) and backup restore. Rehearse the cutover at least once, with a stopwatch.
9. Decommissioning
A migration is only finished when the old environment is switched off. After the observation period: archive what must be kept, erase data from the old media, terminate hosting and licence contracts, and remove accesses that are no longer needed.
10. Post-migration cost review
A few weeks after each wave, compare the actual bill with the estimate. Gaps most often come from oversized resources, test environments left running and outbound traffic. Budget alerts and resource tagging by application, set up with the landing zone, make this review possible.
A sample migration plan outline to copy
Here is a document outline to adapt to your context.
- Context and objectives: reasons, deadline, scope.
- Inventory: applications, servers, databases, flows, owners, criticality.
- Strategy per application: one of the 7 Rs, with its justification.
- Target architecture: landing zone, network, identities, backups.
- Security and compliance: personal data, location, contracts.
- Budget: target cost, project cost, parallel run.
- Waves: content, schedule, owners, exit criteria.
- Runbook: tools, data migration, cutover option.
- Cutover plan: timed sequence, roles, communication.
- Rollback plan: criteria, decision maker, point of no return.
- Test plan: functional, performance, security, restore.
- Decommissioning: observation period, archiving, terminations.
- Follow-up: cost review, optimisation, risks and governance.
Mistakes to avoid
- Migrating without a reliable inventory. Forgotten dependencies are discovered on cutover night.
- Rebuilding everything while migrating. Two simultaneous changes complicate diagnosis.
- Rehosting like for like and stopping there. Without later optimisation, the bill often exceeds the forecast.
- Postponing the landing zone. What is improvised for the first application becomes the norm.
- Forgetting to switch off the old environment. Double billing settles in quietly.
- Leaving compliance to the end. Data location conditions the choice of target.
Frequently asked questions
What are the 7 Rs of cloud migration?
They are the seven strategies documented by AWS: retire (decommission), retain (keep in place), rehost (move without changes), relocate (transfer to the cloud version of the same platform), repurchase (replace with another product), replatform (move with a few optimisations) and refactor (rework the architecture).
What is the difference between rehost, replatform and refactor?
Rehost changes nothing in the application: only the hosting changes. Replatform replaces some components with better-suited equivalents, for example a managed database, without touching the architecture. Refactor modifies the architecture and the code to use cloud-native features. Effort and risk rise in that order.
How long does a cloud migration project take?
It depends on the number of applications, their dependencies, the volume of data and the strategy chosen. The most reliable approach is to estimate the duration after the inventory and adjust it after the pilot wave, which gives a real pace.
Does the GDPR require data to be hosted in the EU?
The GDPR does not ban hosting outside the Union, but it regulates transfers of personal data to third countries: they require an adequacy decision or appropriate safeguards. Sector rules may come on top, such as the certification France requires from hosts of personal health data.
Conclusion
A successful cloud migration depends less on the transfer tool than on three decisions made early: the strategy for each application, the order of the waves, and the way back. The 7 Rs provide the vocabulary for the first. The migration plan settles the other two, and forces you to deal before cutover with what is expensive afterwards: dependencies, compliance, the parallel run.
To prepare or secure your migration, write to us at contact@your-digital-hub.com or see our cloud migration and hosting service and our cloud expertise. You can also describe your migration project on our contact page.