How to copy your bundled AMI from one EC2 region to another

How to copy your bundled AMI from one EC2 region to another

How to copy your bundled AMI from one EC2 region to another 1920 1091 Border Crossing UX

If you have a bundled image in the us-east-1 region of Amazon Elastic Compute Cloud (EC2) and you want to move/copy it to Europe (eu-west-1). The following command should do the trick:

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>
Back to top