Tuesday, January 06, 2009

Amazon EC2 ec2-upload-bundle problems and the EU region

Still trialling Amazon's EC2 Elastic Compute Cloud and came to the stage where I wanted to persist my image for later use.

Following the Getting Started Guide I got as far as uploading my bundle using ec2-upload-bundle. I would get a warning message telling me I was uploading a bundle across regions and the kernel and/or ramdisk may not work across regions.

My image is in the EU region so I assumed it must be trying to put the bundle into the NA region - why I wasn't sure. Tried lots of command line options, no luck.

It turns out if you specify a bucket that doesn't exist on S3 it will create one for you. Possibly by default or by my setup it was creating one in the NA region so every time I ran the ec2-upload-bundle it came up with the same message.

Not wanting to delve too deeply into S3 and its APIs I installed the Firefox add-on CloudFront. You still can't see which region a bucket is in but you can at least specify Europe when creating a new bucket. Did just that, ran ec2-upload-bundle again and my image uploaded with no errors and the ec2-register command finally worked. Hurrah.

This is probably documented in a nice succinct paragraph somewhere in Amazon's great documentation but not where I started looking....

No comments: