Created
September 19, 2008 01:22
-
-
Save ELLIOTTCABLE/11517 to your computer and use it in GitHub Desktop.
Things to remember to do before bundling an AMI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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