Friday 5 April 2019

How to Migrate an EC2 Instance to Another Availability Zone by Raj Gupta




Suppose we have one production EC2 server in Availability Zone us-east-1a but we want to migrate this EC2 server in the Availability Zone us-east-1b


To gain this follow the below step:-

Step 1:-  Create an AMI from the instance.

Select the EC2 ---> Go to Actions ---> Go to Image ---> Then click on create Image


Then fill the below details like Image name, Image description then Click on Create Image


Step 2:- Launch an instance from the AMI created above

To create new instance from AMI

Go to AMIs ---> Select the AMI ---> Then click on Launch


You can use the same instance type as the original instance, or select a new instance type. Then click on Next


Then select the required Availability Zone in which you want migrate the EC2 server in my case us-east-1b


 Now click on next and create the EC2 server

Once New_Production EC2 server are created then you are able to see our Production EC2 server are migrated from us-east-1a to us-east-1b as shown below:-


Now if you want then delete the old EC2 server of us-east-1a

1 comment:

  1. does that mean that if I have 3 subnets with 3 zones in the same region and if 1 zone fails, it will automatically fail over to either 1 of the 2 zones left?

    ReplyDelete