Amazon EC2 AMI Tools

Developer Tools>Amazon EC2 AMI Tools
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

The Amazon EC2 AMI Tools are command-line utilities to help bundle an Amazon Machine Image (AMI), create an AMI from an existing machine or installed volume, and upload a bundled AMI to Amazon S3.

Details

Submitted By: Dave@AWS
AWS Products Used: Other
Languages(s): Other
License: Other
Created On: August 25, 2006 7:56 PM GMT
Last Updated: October 22, 2012 5:51 PM GMT
Download the Amazon EC2 AMI Tools from Amazon S3:

Note: Some browsers associate the .rpm extension with Real Player software, causing the software to open this RedHat Package Manager file. If you encounter this issue, you can either change your browser's file associations, or right-click the link, then save the link target to your computer.

What's New?

  • Support for Amazon EC2 in the Sao Paulo region (sa-east-1)
  • Support for Amazon EC2 in the Oregon Region (us-west-2)
  • Support for EC2 API version 2009-10-31: Amazon EC2 in the Northern California Region (us-west-1)
  • Support for EC2 API version 2008-12-01: Amazon EC2 in Europe
  • Support for EC2 API version 2008-08-08: Amazon EC2 running Windows Server and SQL Server
  • Support for EC2 API version 2008-02-01
  • AMI Tools packaged as a ZIP file in addition to the RPM.
  • Improved fstab handling: The existing fstab is now bundled into the AMI unless otherwise specified
  • Better Ubuntu support: bash is explicitly called where required. This fixes "bad substitution" errors.

Questions/Issues?

Take a look at the AMI Creation Guide or post a message to the EC2 Forum, where we'll be happy to assist.

Licence Notice

Copyright 2008 Amazon.com, Inc. or its affiliates. All Rights Reserved. All of the code, software libraries, applications, updates, tools, and other information and materials made available for download from this web page ("Software") are licensed under the Amazon Software License (the "License"). You may not use the Software except in compliance with the License. A copy of the License is located at http://aws.amazon.com/asl/ or in the "license" file accompanying the Software. The Software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Comments

Works perfectly if you follow the Starting Guide Instructions
I'm surprised the average reviews are so low. As long as you follow the Starting Guide instructions exactly you are good to go.
dlobabo on August 28, 2009 7:11 PM GMT
Windows...
Looks like not all EC2 host hardware supports VT/Pacifica (or Amazon just couldn't come to agreement with MS about licensing of such beast) Anyway, you have windows -:) search for 'Windows' on public AMIs(but it will use QEmu -:)
Dmitriy Kazimirov on August 17, 2008 10:55 AM GMT
No Windows?
A year has passed and still no Windows?
Eugene on June 15, 2008 6:19 PM GMT
ec2-unbundle
Where to get this?
Kapil Srivastava on February 21, 2008 10:52 PM GMT
debian ami-8db95ce4
On debian I had to install kernel modules and to modprobe loop. It has the old depmod, so one needs to upgrade. 1. load the loop device download kernel modules here: http://s3.amazonaws.com/ec2-downloads/modules-2.6.16-ec2.tgz tar xzvf modules-2.6.16-ec2.tgz -C / apt-get install module-init-tools depmod -a modprobe loop 2. get the tools apt-get install ruby libopenssl-ruby openssl rsync curl i tried the zip version, seems fine (no need for alien stuff). 3. run ec2-bundle-vol command with all the options
borisreitman on January 25, 2008 2:17 AM GMT
same error here
I get this error when I tried to delete an AMI image from one of the Amazon stock debian image AMI instances. Pls. help. /usr/lib/site_ruby/aes/amiutil/deletebundle.rb:4:in `require': no such file to load -- aes/amiutil/S3 (LoadError) from /usr/lib/site_ruby/aes/amiutil/deletebundle.rb:4
s_sati11 on November 13, 2007 10:32 PM GMT
ec2-delete-bundle is broken
WHen i try to delete my bundle (created by going through the Getting Started steps) on S3 from a running instance or from my own server (ubuntu) I get: /usr/lib/site_ruby/aes/amiutil/deletebundle.rb:4:in `require': no such file to load -- aes/amiutil/S3 (LoadError) from /usr/lib/site_ruby/aes/amiutil/deletebundle.rb:4 How do I delete the AMI file I created?!?
wkessler on October 21, 2007 5:50 AM GMT
widely supported package
it would be great anyway to have the tools distributed also (or only) in a non rpm format, eventually with some manual configuration steps, but more easily portable on different distributions
cyril on September 28, 2007 12:08 PM GMT
Works awesome
Everything works awesome. Good work!
scockroach on September 12, 2007 5:35 AM GMT
Instructions for use with Ubuntu
Pulling the information from the support forums into one place for how to install the EC2 AMI tools on a Ubuntu image. Tested with Ubuntu Feisty created using debootstrap. (All credit belongs to the guys on the support forums, most notably Chris@AWS) apt-get install wget alien ruby libopenssl-ruby1.8 rsync curl wget alien -i ec2-ami-tools.noarch.rpm ln -sf /bin/bash /bin/sh ln -s /usr/lib/site_ruby/aes /usr/local/lib/site_ruby/1.8/i486-linux/aes Edit: /usr/lib/site_ruby/aes/amiutil/image.rb Change: exec( 'for i in console null zero ; do /sbin/MAKEDEV -d ' + dev_dir + ' -x $i ; done' ) To: exec("cd #{dev_dir} && /sbin/MAKEDEV console && /sbin/MAKEDEV std && /sbin/MAKEDEV generic") If the kernel modules have not already been installed then copy them to /lib/modules and "modprobe loop" ec2-bundle-vol and ec2-upload-bundle should now work. Nick
silicondust on May 9, 2007 7:58 AM GMT
does not work with ubuntu?
I get a "sh: Syntax error: Bad substitution" error when I use it from an ubunutu instance.
amitupadhyay on April 4, 2007 1:00 PM GMT
Linux for the win
why would you want windows, then you will need to register each instance, not to mention how are you supposed to install without a monitor. not to mention every time automatic updates occur it restarts... LOL!!! i'm currently imagining whats gonna happen when windows decides to go to sleep for no reason...
synchronize on March 27, 2007 9:25 AM GMT
Why Linux only?
Why Linux only? :-(
denis bider on March 14, 2007 6:32 PM GMT
We are temporarily not accepting new comments.
©2013, Amazon Web Services, Inc. or its affiliates. All rights reserved.