On-premise Server Migration to AWS using AWS Application Migration Service (MGN)

I'm AWS Certified Solution Architect. I do write about the AWS Cloud Operation, Migration, Security and Automations.
Search for a command to run...

I'm AWS Certified Solution Architect. I do write about the AWS Cloud Operation, Migration, Security and Automations.
No comments yet. Be the first to comment.
Migrating your on-premises MySQL database to Amazon RDS for MySQL with AWS Database Migration Service (DMS) is a common way to move to a managed, highly available database while keeping zero downtime or minimal. In this blog, I’ll show how you can mi...

Introduction: Monitoring storage utilization is critical to ensure application stability and avoid unexpected outages. In AWS, Amazon EBS does not provide built-in metrics for volume-level disk usage, which makes proactive alerting a challenge. To ad...

Introduction: we need to securely transfer sensitive documents to the cloud without manual intervention. A common requirement is to automatically detect file changes, apply client-side encryption, and upload only the modified files on a scheduled bas...

Introduction: Data migration and disaster recovery are key considerations for building resilient cloud architectures. A common requirement is to migrate data from an local machine to a primary Amazon S3 bucket, while ensuring that the same objects ar...

Migrating physical or virtual machines from on-premises to AWS can feel scary but AWS Application Migration Service (MGN) makes it straightforward by continuously replicating servers to AWS and enabling test launches and cutovers with minimal downtime. Let’s start from planning to post-cutover validation.

Open the AWS Application Migration Service console.

Confirm Replication settings:
Under settings select the Replication template and click on edit.
Select the subnet for replication instance and instance type based on your requirement.

Choose EBS volume type and Encryption method.

Save the template
Now, Select the Lunch template under Settings.


Under Post-launch template
Select the install the system manager agent and allow exectuting actions on launch servers.
Also, choose the Deployment option for agent to be installed on.
save the template.

The agent registers the server to your MGN service and starts sending block-level data to replication servers in your AWS account .
Now, Select the Source servers and click on Add server.

Select the Operating system, replication preferences and
Provide the AWS Access key ID and Secret Access Key, you can generate form IAM if you haven’t generated it yet.


Note: remember you need to download the exe file not .sha512







On the AWS Application and Migration Serve on source server

It will redirect to the EC2 launch template
Under Key Pair select or create a new key pair



Choose the recent version
It’s now visible that default version is changed to 3 from 2.

On the Migration Dashboard






Select the test instance and under Security
Click on security group, edit it and
Add the RDP port.

Select the instance and click on connect
Only copy the public DNS and use the username and password of the On-prem server.




You can see that when you changed to Ready for cutover the Test-Instance is automatically deleted.
Now for Cutover,
Schedule downtime or maintenance window for the application (short maintenance window reduces final delta).
In MGN Console, Perform Cutover for selected servers:
MGN will perform a final sync (brief pause for consistent state).
Launch the target EC2 instance(s) in AWS.

As the Lifecycle moves to the Ready for cutover,
From the Test and cutover option, click on “Lunch cutover instance”





Now, we need to finalize the cutover after testing the Instance so that we can shutdown the source and Replication server.
Click on the Finalize cutover from the “Test and Cutover” Option.






we have migrated the On-premise server to the AWS using AWS Application Migration Service (MGN).
Start small: do with a noncritical server to learn the process.
Document everything: replication settings, custom drivers, any changes to server configurations.
AWS Application Migration Service (MGN) simplifies moving on-prem servers to AWS by providing continuous block-level replication, safe test launches, and an easy cutover path. With good planning and careful testing, we can migrate mission-critical workloads with minimal downtime with predictable results.