Can't stop making
Home
11th May, 2010
Tuesday

How to migrate your EC2 server to Singapore region

Singapore AWS has been out the past couple of weeks, and I've migrated my server over. I have to say, accessing from Hong Kong is much faster.

If you also want to migrate your own server from US to Singapore or just want to use one of the pre-built AMI avaliable in the US but not yet in Singapore, follow what I've done.

First of all, start an instance of your AMI.

If the AMI you started is not your own, then customise it first, then execute within the instance:
ec2-bundle-vol -k private_key -u user_id -c cert

Once completed, upload the image direct to an S3 bucket in Singapore!
ec2-upload-bundle -b my-sg-bucket -m manifest -a access_key_id -s secret_key --location ap-southeast-1

Then all you have to do is register it. (commandline below)

If you have already got your own AMI, then SSH in a new instance of your own image, execute:
ec2-migrate-bundle -k private_key -c cert -a access_key_id -s secret_key --bucket my-us-bucket --destination-bucket my-sg-bucket --manifest manifest_path --location ap-southeast-1 --ec2cert ec2_cert_path --region ap-southeast-1

Your AMI will be uploaded to the Singapore S3 service, then you can use:
ec2-register --region ap-southeast-1 --name myvm my-sg-bucket/image.manifest.xml

Then you can launch your own SG instance! You may want to migrate any EBS volumes and data over. I didn't have to deal with the hassle of that as there is no easy way to do it. I just backed up all files on my server onto my own machine and re-uploaded after.

UPDATE 08/07/2011 - Amazon has introduced AWS S3 and EBS import/export service by snail mail. So if your EBS has tons of data, you can use this service to migrate your data instead. EBS is currently limited to US only. AWS S3 import/export is avaliable in all regions. More info here: http://aws.amazon.com/importexport/

Comments

Leave a comment

Any published comments will adhere to the etiquette policy and all e-mail addresses will be treated in accordance to the privacy policy.

a gravitar icon of julz_hk
[ 11:18 ] 12th May, 2010
julz_hk
Hi, I'm in HK and a colleague needs some help these kind of deployment and cloud / fileserver issues. If you are available, please drop me a line. Best - julian
  • If you see this, something's wrong with Twitter.

Blatant Plug

Need a new CPU or graphics card? Get AMD.

AMD Vision and AMD Radeon Graphics

Support

I've pledged my support to these organisations, and I think you should too.

  • Google+
  • Follow ronaldslc on Twitter
  • View Ronald Chan's profile on LinkedIn