Backing up my Amazon AMI to an external image

67 Views Asked by At

I'm trying to create an automatic backup of my Amazon AMIs to another region (automatically, of course).

This is possible with the web GUI which Amazon provides, but I couldn't find an API with allows you to do that (I searched both the boto and the rest API).

The only thing that was close or related to this was the boto.*.Image.CopyImage function, but no destination to another region (or even a PasteImage function) exists, so I don't see how it helps me.

Does anyone know how to do this?

1

There are 1 best solutions below

1
On BEST ANSWER

You have to initiate copy ami operation from the destination region. In your copy command/api , you have to specify the source region where your current ami exist.

Read this carefully. I am quoting the relevant info from the link I referred belo....

This command is submitted to and initiated from the destination region endpoint.