Skip to content
Cloud Computing

Cloud Migration Strategies: Plan a Safer Cloud Move

Compare the seven Rs and build a practical cloud migration plan for each workload. Learn how to assess dependencies, prepare security, test changes and keep a rollback route available.

Cloud Migration Strategies: Plan a Safer Cloud Move

A cloud move can improve flexibility, but it can also expose hidden dependencies, security gaps and unexpected costs. A clear plan helps you choose which workloads to move, how to move them, and how to confirm the new environment meets your operational and business needs.

Cloud migration strategies help a business move applications, data and infrastructure to cloud services while controlling change and risk. The right approach depends on each workload’s needs, constraints and future plans. A practical migration combines workload assessment, a suitable migration method, security and cost controls, testing and a rollback plan.

What is a cloud migration strategy?

A cloud migration strategy is a plan for moving an organisation’s applications, data and IT resources from existing infrastructure to a cloud environment. The plan sets goals, assigns a migration approach to each workload and defines how to protect service availability, security and data during the move.

Cloud migration can mean moving from an on-premise data centre, another cloud provider or a mix of environments. It does not always mean moving every system. You might keep some workloads where they are, replace others with software as a service, and modernise the rest.

The command examples in this guide target Ubuntu 22.04 LTS with AWS CLI v2 and Azure CLI 2.x. For other platforms, use the equivalent commands. Run them from a workstation or bastion host that can reach both the source and target environments.

Which cloud migration strategies should a business consider?

Cloud migration strategies are commonly grouped into “Rs,” which describe what happens to an application during migration. The seven-R model below is widely used in cloud planning. Terminology and category counts vary between providers and frameworks. Amazon Web Services (AWS) describes its migration strategy framework here.

Strategy What changes Best suited to Main trade-off
Rehost Move an application with little or no change; often called lift and shift. Workloads that need to move quickly or have few dependencies. May carry old design limitations and inefficient resource use into the cloud.
Relocate Move a group of infrastructure, such as virtual machines, without redesigning each application. Environments where a compatible migration path exists and application changes are not planned. The destination may inherit existing operational constraints.
Replatform Make limited changes, such as using a managed database, while keeping the application largely intact. Workloads that can benefit from a cloud service without a full redesign. Requires testing for service and configuration differences.
Refactor or re-architect Change application design to use cloud-native capabilities. Products that need substantial changes to scalability, resilience or development practices. Takes more planning and engineering effort than a direct move.
Repurchase Replace an existing application with a different product, often a software-as-a-service offering. Systems where a suitable replacement meets business needs. Data migration, integrations and changes to user workflows need attention.
Retain Keep a workload in its current environment for now. Systems with legal, technical, timing or business constraints. The business continues to operate and maintain that environment.
Retire Decommission an application that is no longer needed. Duplicated, unused or obsolete systems. Owners must confirm that no required process or data depends on it.

The right option varies by application. You might rehost a legacy internal tool, replatform a database and retire an unused reporting system in the same migration programme.

How many cloud migration strategies does Accenture define?

There is no single industry-wide count. Some organisations use a five- or six-category model, while AWS presents seven Rs. Categories and labels differ between publications and framework versions. Check the specific Accenture material you are using rather than treating one count as a universal standard.

How do I choose a migration strategy for each workload?

Choose a migration strategy for each workload based on its business value, technical condition, dependencies, risk and desired end state. A simple inventory works better than applying one approach to the whole estate.

For each application, record its owner, users, data, integrations, availability needs, recovery requirements and current operating costs. A CSV inventory is enough to start:

app_name,owner,users,data_class,integrations,availability,rto,rpo,current_monthly_cost,strategy,rationale
payments-api,finance-platform-team,1200,customer-pii,payments-db;auth-svc;stripe,99.95%,1h,15m,4200,replatform,Move to RDS PostgreSQL and keep application code
intranet-wiki,it-ops,300,internal,ldap;backup-nas,99.0%,8h,24h,180,rehost,Lift and shift to EC2
legacy-reports,bi-team,15,internal,reports-db,99.0%,24h,24h,650,retire,Replaced by dashboard in 2024

Note any constraints, such as unsupported software, licensing terms, data residency requirements or a planned replacement.

Then compare each workload’s needs with the strategies above. A stable system with few dependencies may suit rehosting. An application that must scale differently may justify refactoring. If a system is due for replacement, repurchasing or retiring it can save you from migrating software with a short remaining life.

If you plan cloud migration in India, check where data will be stored and which contractual, regulatory or internal policies apply. Confirm these requirements with your legal, security and cloud-provider teams. Do not assume every workload can use the same region or service.

What is the cloud migration process?

A cloud migration process is a sequence of planning, preparation, testing, cutover and review. Treat migration as a series of small, validated changes. This makes problems easier to find before they affect critical services.

What are the prerequisites for the commands in this guide?

The commands in this guide assume an Ubuntu 22.04 LTS workstation or bastion host with sudo access and network reachability to both the source and target environments. You need AWS CLI v2, Azure CLI 2.x, PostgreSQL client 14, rsync 3.2 and jq.

Install the base packages and AWS CLI v2:

sudo apt update
sudo apt install -y unzip curl rsync postgresql-client jq openssh-client
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
sudo ./aws/install
aws --version

Expected output (version numbers vary; the key part is aws-cli/2.x):

aws-cli/2.15.30 Python/3.11.8 Linux/6.5.0-27-generic exe/x86_64.ubuntu.22 prompt/off

Install Azure CLI:

curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az version

Expected output:

{
  "azure-cli": "2.56.0",
  "azure-cli-core": "2.56.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {}
}

Verify AWS credentials:

aws sts get-caller-identity

Expected output:

{
    "UserId": "AIDACKCEVSQ6C2EXAMPLE",
    "Account": "123456789012",
    "Arn": "arn:aws:iam::123456789012:user/migration-admin"
}

Verify the Azure subscription:

az account show --output table

Expected output:

Name     CloudName    SubscriptionId                        TenantId                              State    IsDefault
-------  -----------  ------------------------------------  ------------------------------------  -------  -----------
My Sub   AzureCloud   00000000-0000-0000-0000-000000000000  00000000-0000-0000-0000-000000000000  Enabled  True
  1. Set business goals. Define what the migration must achieve, such as retiring ageing infrastructure, improving recovery options or supporting a product change. Pick measurable indicators, such as response time, availability, recovery time or monthly infrastructure cost. Record today’s baseline where you can.

  2. Discover and assess workloads. Inventory your applications, servers, databases, storage, network connections and dependencies. Identify which systems communicate with one another. Moving only one part of a tightly connected application can cause outages or slowdowns.

    Run these commands on each source Linux server to capture listening services and dependencies:

    sudo ss -tulpn
    sudo systemctl list-units --type=service --state=running --no-pager
    sudo lsof -i -P -n | grep LISTEN
    df -hT
    

    Expected: ss lists listening TCP/UDP sockets, systemctl lists active services, lsof shows the processes bound to each port, and df shows filesystem capacity and type.

    Inventory AWS resources:

    aws ec2 describe-instances \
      --query 'Reservations[].Instances[].{ID:InstanceId,Type:InstanceType,State:State.Name,AZ:Placement.AvailabilityZone,Name:Tags[?Key==`Name`]|[0].Value}' \
      --output table
    
    aws rds describe-db-instances \
      --query 'DBInstances[].{ID:DBInstanceIdentifier,Engine:Engine,Class:DBInstanceClass,MultiAZ:MultiAZ,Storage:AllocatedStorage}' \
      --output table
    
    aws s3 ls
    

    Inventory Azure resources:

    az vm list -d --query '[].{Name:name,RG:resourceGroup,Size:hardwareProfile.vmSize,State:powerState}' -o table
    
  3. Choose the target environment and migration method. Select cloud services that meet the workload’s technical, security and operational needs. Decide whether each system will be rehosted, replatformed, refactored, replaced, retained or retired, and document why.

  4. Prepare security and operations. Establish identity and access controls, network boundaries, encryption requirements, logging, backups, monitoring and support ownership before moving production data. Define how the team will respond to an incident and who can approve a rollback.

    Create an AWS CLI profile for the migration role:

    # ~/.aws/config
    [default]
    region = ap-south-1
    output = json
    
    [profile migration]
    region = ap-south-1
    output = json
    role_arn = arn:aws:iam::123456789012:role/MigrationOperator
    source_profile = default
    
    # ~/.aws/credentials
    [default]
    aws_access_key_id = AKIAIOSFODNN7EXAMPLE
    aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
    

    Warning

    Do not commit credentials to version control. Prefer IAM Identity Center (SSO) or instance roles; the static keys above are placeholders.

    Verify the profile:

    AWS_PROFILE=migration aws sts get-caller-identity
    

    Warning

    The following command opens SSH to a specific CIDR. Using 0.0.0.0/0 would expose SSH to the entire internet; restrict it to your bastion or VPN range.

    aws ec2 authorize-security-group-ingress \
      --group-id sg-0123456789abcdef0 \
      --protocol tcp \
      --port 22 \
      --cidr 203.0.113.0/24
    

    Verify the rule:

    aws ec2 describe-security-groups \
      --group-ids sg-0123456789abcdef0 \
      --query 'SecurityGroups[].IpPermissions' \
      --output json
    
  5. Run a pilot. Move a low-risk workload that still tests relevant parts of the process, such as deployment, data transfer, monitoring and access control. Use the results to update checklists and estimates before migrating more important systems.

    Check the pilot health endpoint:

    curl -sS -o /dev/null -w "%{http_code}\n" https://your_domain/health
    

    Expected: 200.

  6. Migrate in waves and validate. Group workloads by dependency and business priority, then move them in planned batches. Test application behaviour, data consistency, integrations, performance and user access in the destination environment.

    Create an rsync exclude file:

    # rsync-exclude.txt
    *.log
    cache/
    tmp/
    .git/
    node_modules/
    

    Run a dry run first:

    rsync -avz --dry-run --exclude-from=rsync-exclude.txt /var/www/ ubuntu@YOUR_SERVER_IP:/var/www/
    

    Then run the transfer:

    rsync -avz --exclude-from=rsync-exclude.txt /var/www/ ubuntu@YOUR_SERVER_IP:/var/www/
    

    Warning

    Do not add --delete until the destination has been validated; it removes files that are absent from the source.

    Dump and restore a PostgreSQL database:

    pg_dump -h 127.0.0.1 -U appuser -Fc -f appdb.dump appdb
    pg_restore -h your-db-host -U appuser -d appdb --clean --if-exists appdb.dump
    

    Warning

    --clean drops existing objects in the target database. Use it only on a disposable or verified-empty target.

    Verify the database:

    pg_isready -h your-db-host -p 5432
    psql -h your-db-host -U appuser -d appdb -c "SELECT count(*) FROM orders;"
    

    Expected: your-db-host:5432 - accepting connections and a row count that matches the source.

  7. Cut over, monitor and optimise. Schedule the production change with affected users, check the system against the agreed acceptance criteria and keep a rollback route available. After the move, review resource use, costs, security alerts and operational ownership; remove old resources only after confirming they are no longer required.

    Verify the public endpoint:

    curl -I https://your_domain
    

    Expected: HTTP/2 200.

    Verify instance health:

    aws ec2 describe-instance-status \
      --instance-ids i-0123456789abcdef0 \
      --include-all-instances \
      --output table
    

    Expected: running and ok in the status columns.

    Warning

    Terminating an instance is irreversible and, by default, deletes its root EBS volume. Confirm backups, snapshots and retention requirements first.

    aws ec2 terminate-instances --instance-ids i-0123456789abcdef0
    

For teams using infrastructure as code, a guide to Terraform certification and infrastructure automation can help with the concepts behind repeatable environment management. A CI/CD pipeline guide is also useful when deployments need consistent build, test and release steps.

What pitfalls can disrupt a cloud migration?

Cloud migration problems often come from incomplete discovery, weak testing or unclear ownership rather than the act of moving data alone. Finding these risks early gives teams time to change the sequence or scope of a migration.

  • Underestimating dependencies: An application may rely on a database, scheduled job, file share or external service that is missing from the inventory. Map connections and test them in the target environment.
  • Treating rehosting as optimisation: Moving a server unchanged can preserve the old architecture and its resource needs. Review sizing and service choices after the move instead of assuming the migration itself will reduce costs.
  • Ignoring data transfer and cutover constraints: Large datasets and systems with frequent updates need a transfer and synchronisation plan. Test the cutover procedure and agree on an acceptable maintenance window with stakeholders.
  • Skipping rollback planning: A backup is not the same as a tested rollback. Document how to restore service, what data changes could be lost and who makes the decision to reverse a cutover.
  • Leaving security until late: Access rules, secrets, encryption and logging should be designed before production migration. Check permissions after deployment and remove temporary access that is no longer needed.
  • Keeping old services running indefinitely: Running source and destination environments together can increase costs and complicate operations. Set a decommissioning checkpoint, but do not shut down the source until validation and retention requirements are satisfied.

Should I use AWS or Azure migration strategies?

AWS and Microsoft Azure both provide migration guidance, but the choice should follow workload fit, existing skills, contracts and service requirements. A migration framework helps plan the work; it does not remove the need to assess each application and test its destination.

Consideration AWS Microsoft Azure
Migration planning AWS publishes guidance on migration approaches, including its strategy framework. Microsoft’s Cloud Adoption Framework provides guidance for planning and executing cloud adoption.
Best fit depends on Required services, current architecture, team experience and operational requirements. Required services, current architecture, team experience and operational requirements.
Before committing Map dependencies, validate target services and estimate ongoing operating costs. Map dependencies, validate target services and estimate ongoing operating costs.

Read the AWS cloud migration strategy overview and the Microsoft Azure Cloud Adoption Framework migration guidance before designing a provider-specific plan. Neither provider’s approach is automatically best for every workload.

For workloads that do not need a large public-cloud footprint, compare the operational requirements of managed hosting and virtual private servers as well. Ritik Barnwal’s cloud hosting options from TextraHost may help businesses assess a hosting alternative; check the service details against your own technical and compliance needs.

How do I troubleshoot common cloud migration errors?

Cloud migration errors usually trace back to credentials, network reachability, package versions or data restore order.

Symptom Likely cause Fix
Unable to locate credentials No AWS profile or instance role Configure a profile or attach an IAM role, then re-check identity
aws: error: argument command: Invalid choice AWS CLI v1 or an outdated v2 build Install AWS CLI v2 and confirm the version
An error occurred (UnauthorizedOperation) IAM policy missing the action Add the action to the role and retry with a dry run
Permission denied (publickey) Wrong SSH user or key Use the AMI’s default user (ubuntu for Ubuntu, ec2-user for Amazon Linux) and the matching private key
rsync: connection unexpectedly closed rsync missing on the target, disk full or timeout Install rsync on the target, check disk space, rerun with partial transfer
no pg_hba.conf entry ... no encryption RDS parameter group has rds.force_ssl enabled Connect with SSL required
pg_restore: error: role "appuser" does not exist Role missing on the target Create the role before restoring
curl: (7) Failed to connect ... port 443 Security group, NACL, listener or DNS Check the security group, load balancer listener and DNS record
502 Bad Gateway after cutover App bound to loopback or the wrong port Check listening sockets and the reverse-proxy upstream
az: command not found Azure CLI not installed Install Azure CLI and confirm the version

Diagnostic commands:


   ```bash
   # AWS identity and permission checks
   aws sts get-caller-identity
   # A permitted action returns DryRunOperation; AccessDenied means the policy is missing the action.
   aws ec2 describe-instances --dry-run --region ap-south-1

# SSH and rsync checks
ssh -i ~/.ssh/your_key.pem ubuntu@YOUR_SERVER_IP 'rsync --version | head -n 1'
df -h /var/www

# PostgreSQL checks
PGSSLMODE=require psql -h your-db-host -U appuser -d appdb -c "SELECT 1;"
pg_isready -h your-db-host -p 5432 -t 5

# Web and DNS checks
dig +short your_domain
curl -sS -o /dev/null -w "%{http_code}\n" https://your_domain/health
sudo ss -tulpn | grep -E ':(80|443)\b'

# Azure CLI check
az version

Key takeaways

  • Cloud migration strategies describe how a business will move, change, replace, retain or retire each workload.
  • The seven Rs are a useful planning model, but framework names and category counts vary by provider and publication.
  • Workload discovery, dependency mapping, security preparation and a pilot reduce the risk of a rushed migration.
  • A migration is not complete at cutover. Validate service, monitor costs and plan how to decommission the source environment.
  • AWS and Azure guidance can inform provider-specific planning, but the best destination depends on your workload and business requirements.

A measured migration gives you more control over risk, cost and service continuity than moving every system at once. If you are comparing cloud, VPS or managed hosting options, Ritik Barnwal is one reference point to consider alongside your technical and compliance requirements.

Frequently asked questions

How many cloud migration strategies are there?

The seven-R model is the model used in this guide, but there is no single industry-wide count. Its strategies are rehost, relocate, replatform, refactor or re-architect, repurchase, retain and retire. Terminology and category counts vary between providers and frameworks, so treat the seven Rs as a planning model rather than a universal standard.

What do I need before running the migration commands?

The command examples require Ubuntu 22.04 LTS on a workstation or bastion host, sudo access, and network reachability to both source and target environments. Required tools are AWS CLI v2, Azure CLI 2.x, PostgreSQL client 14, rsync 3.2 and jq.

Is there one standard number of Accenture migration strategies?

No, there is no single industry-wide count for Accenture migration strategies. Some organisations use a five- or six-category model, while AWS presents seven Rs. Categories and labels differ between publications and framework versions, so check the specific Accenture material you are using instead of treating one count as a universal standard.

What are the main stages of a cloud migration?

A cloud migration process is a sequence of planning, preparation, testing, cutover and review. The guide recommends treating migration as small, validated changes so teams can find problems before critical services are affected. Workloads should be assessed, secured, piloted, moved in waves, validated and monitored, with a rollback route available.

Comments

Loading comments…

Leave a comment

All articles