Siu Lun

Tag: Server

How to migrate your EC2 server to Singapore region

by Siu Lun on May.11, 2010, under Computer, Server, Web

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.

1 Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...