Wed 21 Nov 2007
Amazon EC2 AIM tools are necessary if you want to create your own images (by either doing it from scratch or modifying others AIM) to use on Amazon EC2 service. That tool is only supporting linux, so they provide a RPM (maybe primarily targeted for FC?).
If you are a gentooer, then you have to do it manually. The following is what I have done to make it work
rpm2targz ec2-ami-tools.noarch.rpm #if you don't have rpm2targz, run emerge rpm2targz first tar xvfz ec2-ami-tools.noarch.tar.gz mv usr/local/* /usr/local/ mv usr/lib/site_ruby/ /usr/lib/ mv etc/aes/ /etc/ ln -s /usr/lib/site_ruby/aes /usr/lib/ruby/site_ruby/1.8/i686-linux/aes
After that, you should be able to run ec2-bundle-vol and others just fine.
Another tip: I have this in my ~/.bash_profile (~/.bashrc will do too):
#for Amazon EC2 AMI bundle EC2_BUNDLE="-k /path/to/your/pk/pem -c /path/to/your/cert/.pem -u <user_id>" alias ec2-bundle-vol="ec2-bundle-vol $EC2_BUNDLE" alias ec2-bundle-image="ec2-bundle-image $EC2_BUNDLE"
So that you don’t need to specify all those mandatory options every time you invoke these commands.
RSS feed for comments on this post. TrackBack this post