How to Migrate AWS Instance to Google Cloud Compute Engine VM

Shubhangi Thakur
3 min readJan 12, 2023

--

We often Migrate a VM from multiple cloud providers there are several ways we can do that now GCP offers an amazing service called Migrate to VM to achieve the goal. We needed to migrate the VM from AWS to GCP and establish the secured connectivity between AWS and GCP.

Step-1.

First You have to setup VPN GCP to AWS…Follow this Artical.

Step-2.

For Migrating AWS Instance to GCP VM

a. In Google Cloud Console, Go to the Compute Engine -> Migrate to Virtual Machine and select the source section then click on Add Source -> +Add AWS Source

b. Provide the AWS Access Key ID and Secret access key and Click create. And Wating for few minutes when the source will be active.

c. Wait for a few minutes. until the source status will be active. And then you will see AWS EC2 Instance in GCP.

AWS-insatnces

d. Now select the Source VM which VM you want to Migrate and click ADD Migration -> click confirm

e. Go to the Migration Section. Here you see the Migration VM and select the source VM and then Click on Edit Target Details.

f. Provide the 7 required details for creating the GCP VM like — Instance Name, Project, Zone, machine type series, machine type, network, subnetwork.

g. Go to General -> give name -> select project -> select zone -> save.

h. Go to Machine Configuration -> select machine type -> save.

h. Go to Network Configuration -> select VPC -> select subnetwork -> External Ip: Ephemeral -> save.

i. Select Migration and Start the replication. Wait for few minutes….

j. Whenever it is in Active mode -> click CUT-OVER AND TEST-CLONE and run the test clone.

Note- Ensure that your AWS EC2 instance does not use an image that GCP does not support. Like- Amazon Linux

Test Clone is Completed..

Now Your Migrated VM is Ready….

AWS EC2 instance to GCP VM Migration All Steps Are Done.

Thankyou for reading this artical, I hope this is helpful for you.

Comment down your thoughts, feedback, or suggestions.

--

--

Shubhangi Thakur

Cloud Engineer | GCP+AWS Cloud | DevOps | 3XGCP Certified