5

I have an instance store (not EBS) based EC2 instance, launched from an official Ubuntu 12.04 AMI (specifically ami-25e8d351: eu-west-1, 32-bit, instance root store).

It is up and running, and I've made some changes to it (installed software; tweaked config files).

Now I'd like to bundle the setup as an AMI (on Amazon S3), i.e., save the changes I've made. But I can't do this on the AWS Console:

enter image description here

Why is the "Bundle Instance (instance store AMI)" option greyed out?

And more importantly, is there any way to save this instance as an AMI?

Jonik
  • 2,911
  • 4
  • 37
  • 48

1 Answers1

7

Bundle Instance, from the AWS console, is equivalent to running ec2-bundle-instance. This command is only available on Windows instances, and as such, the AWS console option is only enabled for Windows instances. You cannot bundle an instance-store Linux AMI from the AWS console at this time.

To create an AMI of your Linux instance you will need to SSH into your instance and use Amazon's AMI and API (command line) tools. Amazon details the process in their documentation. Briefly:

  1. You will need your certificate and private key on the instance
  2. Create a bundle of the root volume using: ec2-bundle-vol
  3. Upload the bundle to S3 using: ec2-upload-bundle
  4. Register the AMI using: ec2-register (at this point you can also specify a block device mapping to associate additional snapshots and ephemeral volumes with the AMI).
cyberx86
  • 20,620
  • 1
  • 60
  • 80