AMI Bundling
I created a bundle to basically save my admin work since it gets lost when an instance is terminated. It was a good practice experience as well.
added keepcache=1 to /etc/yum.conf to cache rpm packages
yum update
Follow instructions from http://www.picky-ricky.com/2009/01/more-ami-bundling.html to install postgresql
Follow instructions from Rails Deployment with Passenger to install Apache, Passenger, Gems
installed s3sync
s3synced /var/cache/yum/update-newkeys/packages to S3
shutdown -r now
bundle volume
http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/creating-an-image.html (all you need)
http://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/bundling-an-ami-linux.html
you will get an error that the 2.6.21 kernel doesn't support rsync lutimes. need to wait for .22
you will get an error that meta-data product codes could not be found, which i had already noted on previous occasions
Note that XEN starts guests in runlevel 4 despite inittab
For Fedora these are apparently the only services needed on the AMI based on chkconfig --list | grep on
ConsoleKit, anacron, crond, fuse, messagebus, network, rsyslog, sshd, sysstat