Move / Copy EC2 instance to another region

Is it finally possible ? While the AMI import tool is long awaited for but only available for Windows, it is rather a big hazzle to transfer manually (see this) any other OS ( my last attempt in 2010).

Today Amazon announced the EBS Snapshot Copy Feature(across regions). The intention is certainly to allow easy migration of data to another region, as you can copy the snapshot, create a volume and attach it to an instance. I was curious to try if I can migrate my Ubuntu instance to another region and it worked. You can use both command-line as well the AWS web admin.

  • Create a snapshot of a volume in your source region 

    Create Snapshot

    Create Snapshot

  • Copy Snapshot
    Beware of the transfer charges (this is considered regular IN/OUT traffic!) 

    Copy Snapshot

    Copy Snapshot

    Copy Snapshot

    Copy Snapshot

     

  • Change to target region
  • Create an instance of the same type as your source (not really important to be same sizing) with some local AMI
  • Stop the new instance
  • Detach the volume automatically created 

    Detach Volume

    Detach Volume

  • Create a volume from the copied snapshot
    Make sure it is in the same availability zone ! 

     

    Create Volume

    Create Volume

  • Attach it to the new instance as /dev/sda1Attach Volume

    Attach Volume

     

    Attach Volume

    Attach Volume

  • Start instance et Voila ! 

    Server Log

    Server Log

I am not sure if there are any side-effects or if it work with other OS but my Ubuntu server boots as expected and works fine. Great !

Advertisements
Leave a comment

Leave your opinion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: