How Move AWS EC2 instance another Availability Zones

Move AWS EC2 instance another Availability Zones

AWS EC2 is Availability Zone oriented service. It’s not possible to quick move instance between two AZ. There is different approach as you can remember from VMware or Microsoft, where host as present virtual machine owner is clear specified. But there is simple possibility to do that using AMI. Move AWS EC2 instance another Availability Zones is possible.

Let’s move EC2 instance between AZ

First of all take a look where instance is available for now.

Move AWS EC2 instance another Availability Zones
EC2 instance Availability Zone.

 

As you can see there is us-west-2b AZ specified. To move to another, you need to create AMI from existing instance and then launch new one from created image with new AZ marked in properties:

  1. Stop Instance. Mark instance in Instances menu and choose Action button, then Instance State and Stop.
  2. Create Ami from existing instance. Click Action button, Image and Create Image

    Move AWS EC2 instance another Availability Zones
    Creating AMI from existing instance.
  3. Go to AMI menu, choose created AMI and from Action menu click on Launch button.

    Move AWS EC2 instance another Availability Zones
    Launch new instance from AMI.
  4. In instance setting choose VPC located in different AZ.

    Move AWS EC2 instance another Availability Zones
    Setting of instance during creating.
  5. After creating instance check which Availability Zone is specified.
    Move AWS EC2 instance another Availability Zones
    New and old instances on different AZ.

    Old one is available in us-west-2b, new in us-west-2a. Now terminate this, which is stopped and you will have migrated instance.

    AWS documentation: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html

Leave a reply:

Your email address will not be published.