EC2: Bundling an AMI using the AWS eclipse-plugin
Tags: 9%, aws, aws plugin, aws toolkit, bundle ami eclipse, bundling, bundling 9%, ec2, ec2 eclipse, s3 bucket
The eclipse-plugin AWS-Toolkit (available from here) is a nice tool for managing your amazon ec2 instances. You can even bundle an AMI from a running machine and store it to your S3-Bucket. Before trying to bundle an AMI make sure that the aws toolkit is configured correctly:
Preferences → AWS Toolkit →Account Number: 111122223333 ← enter your account number here (not your mail address!)
Preferences → AWS Toolkit →Certificate File: path-to\cert-abc.pem ← make sure the path is set correctly
Preferences → AWS Toolkit →Private Key File: path-to\pk-xyz.pem ← make sure the path is set correctly
How to bundle an AMI (Linux):
Start an Instance and make your desired changes.
Right click on the running instance and select “Bundle AMI…”.
Enter your S3 bucket name and path where the AMI will be stored: /mybucketname/AMIs
Enter the desired name of your ami: fedora-11-32bit-perfect-cloud-ami
Click ok.
The eclipse-plugin will transfer your certificate and private key to the /mnt directory of the running instance and then create an image from the running machine.
Finally the image will be segmented and uploaded to the specified S3 bucket.
Important:It looks like the bundling process hangs at 9%, directly after the cert and pk have been transferred. But it doesn’t. It simply takes some time (about 30 minutes) to create the image and upload it to S3. As far as I know the bundling progress bar doesn’t work correctly in eclipse. If you want to make sure that the bundling is still in progress open a bash on the ec2 instance and execute:
ps aux | grep "ec2"
It should list a few processes related to the bundling.