Cloud Migration: What Engineering Leaders Should Decide Before Moving Anything
The decisions that make or break a cloud migration are mostly made before a single server moves. Take a learning platform that serves school districts in the United States and school boards in Canada from a colocation facility. Its lease ends in eighteen months, two Canadian boards have written into their contracts that student data must stay in Canada, and every September the roster sync with district student information systems runs for hours longer than usual. Each of those facts points to a different migration choice, and moving everything the same way would satisfy none of them well.
Cloud migration is the move of applications, data and infrastructure from your own or rented hardware to a cloud provider, or between providers. Before moving anything, decide why you are moving, choose a strategy for each workload rather than for the whole estate, settle where regulated data may live and who may access it, understand what will drive the cost, and make sure the team has the skills the target environment needs. The move itself is the easier part once those are clear.
Why Are You Moving to the Cloud?
Start with the business reason, because it determines how much change each workload needs. Common reasons include leaving a data center or colocation contract, meeting a data residency or compliance requirement, handling seasonal peaks without owning hardware for them, reducing the operational work of running databases and servers, and gaining access to managed services the team would otherwise build.
The learning platform has three of those at once, with different weights. The lease end sets the deadline. The Canadian contracts set a hard requirement for part of the data. The September roster load is a performance and capacity question that matters but does not have to be solved on day one. Writing those down in order of priority stops the migration from turning into a rewrite of everything, and gives the team a way to say no to changes that do not serve the goal.
If the only reason is “the cloud is cheaper,” look harder before committing. Cost after migration depends heavily on how the workloads are run, and an unchanged application moved onto always-on virtual machines can cost as much as, or more than, the hardware it left.
Rehost, Replatform or Refactor: How Do You Choose?
Choose a migration strategy per workload, based on what that workload needs and what the business goal allows. AWS’s guidance on paths to the cloud names seven strategies, and the three that cover most application work are rehost (move without changes), replatform (move with some optimization to use cloud capabilities) and refactor (change the architecture to use cloud-native features). The others are relocate, repurchase, retain and retire, and the last two are often underused: some workloads should stay where they are for now, and some should be switched off.
Applied to the learning platform, a cloud migration strategy might look like this:
| Workload | Strategy | Reason |
|---|---|---|
| Core web application | Rehost first, replatform later | The lease deadline matters more than redesign; change it once it is stable in the cloud |
| PostgreSQL database | Replatform to a managed database | Removes patching and backup work the team does by hand today |
| Assignment file storage | Replatform to object storage | Simple change, large operational gain |
| Nightly roster sync | Refactor into queued, per-district jobs | The September problem is a design problem, not a hosting one |
| Legacy grade export used by two districts | Retain, then retire | Contracts end next year; moving it adds cost and no value |
The table makes the trade-offs visible. Rehosting the web application first, a classic lift and shift, meets the deadline with the least change but carries existing inefficiencies into the cloud. Refactoring the roster sync takes real engineering time but fixes a problem that hosting alone would not.
What Does Data Residency Change in a Cloud Migration?
Data residency requirements change where data may be stored, processed and backed up, and often who may access it. Meeting them takes more than choosing a region. Backups, replicas, logs, search indexes, analytics exports, error-tracking tools and support access can each move data across a border without anyone intending it. This is general information, not legal advice; the specific obligations come from your contracts and the laws that apply to them.
For the learning platform, the Canadian boards’ student records need to be stored in a Canadian region, and the team has to trace every place those records travel. The database replica, the nightly backup, the log pipeline that captures request bodies and the third-party email service that receives student names all need checking. Encryption key management belongs in the same review, since the location and control of keys is often part of what a contract requires.
There is an architecture decision here too: run a separate deployment for Canadian customers, or run one application that routes each customer’s data to the right region. Separate deployments are simpler to reason about and audit, while a single routed application is easier to operate but harder to prove correct. The engineers who will work with that data also count. Compliance obligations can limit where people with production access may be located, and geography affects legal constraints as well as working-hour overlap, as the first part of our Location Matters series on onshore, nearshore and offshore points out.
Some companies need the same software to run both in the cloud and on premises for customers with strict residency rules. Gun.io’s brief on decoupling transactional and analytical workloads in an enterprise security platform describes an abstraction layer that let a new reporting system on Amazon DynamoDB work identically across AWS and on-premises environments, giving enterprise clients with strict data residency requirements a portable deployment.
What Drives the Cost of a Cloud Migration?
Cloud migration cost is driven by how much change each workload needs, how long you run two environments, how the workloads are run once they arrive and what the team must learn to operate them. None of these has a typical figure, because they depend on the system, but each can be estimated once you know the workloads.
The migration work itself scales with dependencies more than with server count. A web application that talks to one database is a short job. The same application with undocumented connections to a reporting server, a file share and three scheduled scripts takes much longer, mostly in discovery.
Running both environments during the transition is a cost that plans tend to underestimate. Until the last workload moves and the old environment is switched off, you pay for both, so sequencing and decommissioning deserve the same attention as the move.
After the move, architecture decides the bill. Virtual machines sized for the September peak and left running all year cost far more than capacity that scales with demand. Data transfer between regions and out to the internet, licensing that may or may not carry over, and the price of managed services all count. Managed services often cost more per hour than running the same software yourself, but they also remove patching, backup and failover work from your team, so compare them against the engineering time they save rather than against raw compute.
Skills are a cost too. A team that has run its own servers for years will need time to learn identity and access management, cloud networking and infrastructure as code, or will need experienced engineers alongside it while it learns.
What Skills Does a Cloud Migration Team Need?
A cloud migration team needs cloud architecture and networking, identity and access management, infrastructure as code, database migration experience, and engineers who understand the application being moved. Security and compliance knowledge matters wherever regulated data is involved, and someone should own cost visibility from the start.
That list does not mean a large team. At Gun.io, we tend to start with as few people as the work allows: often one engineer with strong cloud infrastructure experience working alongside an application engineer who knows the system’s dependencies and failure modes. Splitting the work further makes sense when the workload needs distinct depth, such as a complex data residency design, a large database move or a regulated environment with its own audit requirements.
If containers are part of the target design, the team needs that experience too, though not every migration should end on a container orchestration platform. A small number of services can run well on simpler managed options, and adding an orchestration layer only because it is available brings operating work without a matching benefit.
How Should You Sequence a Cloud Migration?
Sequence the move so each wave is small enough to roll back and teaches the team something before the next one. Build the foundation first: accounts, network layout, identity and access policies, logging and the infrastructure as code that defines them. Then move low-risk, stateless workloads, then data, then the parts with the most dependencies.
Fit the schedule to the business calendar. The learning platform should not cut over its core application in late August, when districts are loading rosters for the new school year. A cutover in the summer lull, with the old environment kept available until the first busy weeks have passed, carries far less risk.
For each wave, decide in advance how you will know it worked, how you will roll back if it did not, and when the old component will be switched off. The last of those is what turns a migration into lower cost and less operating work, rather than two environments indefinitely.
How Gun.io Supports Cloud Migrations
Gun.io’s cloud infrastructure work sits alongside legacy modernization, data and backend engineering, and architecture. We start by understanding why you are moving and what each workload needs, then decide who should do the work and under which model. A team with a migration plan and a technical lead can bring our engineers in through staff augmentation and keep directing the work. A team that needs the estate assessed, a strategy chosen for each workload and the move carried through usually suits scoped project delivery, in which we take a larger share of managing the work.
Depending on the target environment, that can mean engineers with deep AWS experience or, where the design calls for container orchestration, Kubernetes experience.
Frequently Asked Questions
Is Lift and Shift a Mistake?
No, rehosting is often the right first step when a deadline drives the move. It gets workloads out of the old environment with the least change and the least risk of new bugs. The mistake is treating it as the finish line, because the cost and operational benefits usually come from replatforming or refactoring afterward.
Should You Use More Than One Cloud Provider?
Usually not at the start. Running across several providers multiplies the networking, identity, tooling and skills you need, and most teams get more from using one provider well. A second provider makes sense for a specific reason, such as a customer requirement or a service only one provider offers.
How Do You Keep Cloud Costs From Growing After Migration?
Make cost visible to the engineers who create it. Tag resources by team and workload, review spending regularly against the workloads that produced it, switch off what is no longer used, and revisit sizing after the first busy period. Cost tends to grow when nobody owns it.
What Is Cloud Repatriation?
Cloud repatriation is moving workloads from a public cloud back to your own or rented hardware. Companies do it when a workload is stable and predictable enough that owning hardware costs less, or when control or compliance requirements favor it.
Who Should Own the Cloud Environment After the Move?
A named internal team should own it, with documented infrastructure as code, runbooks and access policies. If outside engineers did the migration, the handoff should include walking your team through each of these and having them make changes while the people who built the environment are still available.
Do You Need to Modernize the Application Before Moving It?
Not always. If a deadline or a compliance requirement drives the move, rehost first and modernize once the application is stable in its new environment. If the application cannot run reliably in the cloud as it is, for example because it depends on local file storage or fixed network addresses, those specific dependencies need fixing before or during the move.
Make the Decisions the Move Cannot Undo
A cloud migration is reversible in its details and expensive to reverse in its foundations: where data lives, how accounts and access are structured, which workloads were redesigned and which were copied. Before you commit to them, talk to us about the system you’re moving, the deadline behind it and the data rules it has to respect.