Is it possible to change the availability zone of an existing EC2 t1.micro instance?

Amazon Ec2Amazon Web-Services

Amazon Ec2 Problem Overview


Sometimes when trying to launch my t1.micro EC2 instance, it cannot be provisioned and Amazon recommends trying a different availability zone. Is it possible to change this for an existing instance?

Amazon Ec2 Solutions


Solution 1 - Amazon Ec2

You cannot move an existing EC2 instance to a different availability zone directly.

However, the following approach can be used to move an instance to a different availability zone indirectly through a new AMI:

  1. Stop (do not terminate!) the old instance in the old availability zone.

  2. Create an AMI based on the old instance.

  3. Run a new instance of the new AMI in the new availability zone. It will be a fairly exact copy of your old instance.

If you were using an Elastic IP address, re-associate it with the new instance.

Once you have tested the new instance and know that it's working well, terminate the old instance in the old availability zone.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionanonView Question on Stackoverflow
Solution 1 - Amazon Ec2Eric HammondView Answer on Stackoverflow