Waseem Shaikh
awscloud

AWS Cloud Migration

This repository provides a comprehensive guide to migrating on-premises virtual machines (VMs) to Amazon EC2 using the AWS Application Migration Service.

Prerequisites

 

  • An active AWS account in a supported region.
  • Network connectivity between your on-premises environment and AWS, either through AWS Direct Connect, VPN, or the internet.
  • Administrative access to the source VMs intended for migration.

Workflow Diagram

 

awsmgn00

Architectural Diagram

 

awsmgn-ardiagram

Migration Steps

 

  1. Initialize AWS Application Migration Service:

awsmgn00

  1. Configure the Staging Area:

    • In your AWS Management Console, set up a staging area subnet within your VPC.
    • Ensure the subnet has the necessary permissions and resources for data replication.
  2. Install the AWS Replication Agent on Source Servers:

    • Download the AWS Replication Agent from the official AWS documentation.
    • Install the agent on each on-premises VM you plan to migrate.
Sample-Commands:
sudo wget -O ./aws-replication-installer-init https://aws-application-migration-service-us-east-1.s3.us-east-1.amazonaws.com/latest/linux/aws-replication-installer-init

sudo chmod +x aws-replication-installer-init; sudo ./aws-replication-installer-init --region us-east-1

awsmgn01

  1. Monitor Data Replication:
    • Use the Application Migration Service console to monitor replication progress.
    • Wait for the initial synchronization to complete before proceeding.

awsmgn01 awsmgn02

  1. Launch Test Instances:
    • After replication, launch test instances in AWS to verify successful migration.
    • Conduct user acceptance testing (UAT) to ensure applications are functioning correctly.

awsmgn04

  1. Finalize the Cutover:
    • Once testing is successful, perform the cutover to the AWS environment.
    • Decommission the original on-premises VMs if they are no longer needed.

awsmgn05

Best Practices

 

  • Avoid taking source servers offline or rebooting them until the cutover is complete.
  • Allocate sufficient time for user acceptance testing to identify and resolve any issues.
  • Regularly monitor the replication status to detect and address potential problems early.
  • Use temporary AWS Identity and Access Management (IAM) credentials for agent installation to enhance security.

Additional Resources

 

For more detailed information, refer to the AWS Prescriptive Guidance on migrating an on-premises VM to Amazon EC2 using AWS Application Migration Service.

Leave a Comment