Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created September 19, 2008 01:22
Show Gist options
  • Save ELLIOTTCABLE/11517 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/11517 to your computer and use it in GitHub Desktop.
Things to remember to do before bundling an AMI
Things to remember to do before bundling an AMI
===============================================
rm -rf /etc/ssh/ssh_host_*
export EC2_AMITOOL_HOME=/usr/local/ec2
modprobe loop
rm -rf /mnt/arch*
rm -rf ~/.bash_history
/usr/local/ec2/bin/ec2-bundle-vol --generate-fstab --no-inherit -d /mnt -p arch -r i386 -u <your userid> -k /mnt/pk-<yourkey>.pem -c /mnt/cert-<yourcert>.pem
/usr/local/ec2/bin/ec2-upload-bundle -m /mnt/arch.manifest.xml -b <bucket name> -a <your access> -s <your secret key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment