Copy your bundled image on Amazon EC2 from one region to another

Wednesday, February 18th, 2009 by The BCM Team

If you have a bundled image in the us-east-1 region of Amazon EC2 and you want to move/copy it to Europe (eu-west-1). The following command will help you out:

ec2-migrate-bundle --cert certificate.pem --privatekey privatekey.pem
--access-key  --secret-key  --bucket  --destination-bucket
--manifest image.manifest.xml --location EU
–cert
Specifies what certificate file to use
–privatekey
Specifies what private key file to use
–access-key
Your AWS account access key
–secret-key
Your AWS account secret key
–bucket
Bucket in origin region where the image is located
–destination-bucket
Bucket in destination region where the image will be transfered to
–manifest
filename of manifest file of bundled image
–location
Region where you are moving your image to

Once you transfered your bundled image, you will need to register it as an image on your EU server with the following command:

ec2-register --region eu-west-1 <bucket-name>/<manifest-filename>

Leave a Reply