Skip to content

Instantly share code, notes, and snippets.

@mmastoras
Created January 16, 2014 06:33
Show Gist options
  • Save mmastoras/8450683 to your computer and use it in GitHub Desktop.
Save mmastoras/8450683 to your computer and use it in GitHub Desktop.
create custom AMI of latest dynode release in region other than US-EAST-1
sudo su - admin
export set EC2_REGION='us-west-1'
export set EC2_HOME=/home/admin/ec2-api-tools-1.6.12.0
/home/admin/ec2-ami-tools-1.4.0.9/bin/ec2-bundle-vol -k /tmp/cert/spongecell_x509.pem -c /tmp/cert/spongecell_x509_cert.pem -u 7915-7448-1547 -e /tmp/cert -i /home/admin/.ssh/authorized_keys,/home/admin/.ssh/id_rsa,/etc/apt/trusted.gpg,/etc/apt/trustdb.gpg -e /home/admin/ec2-ami-tools-1.4.0.9
/home/admin/ec2-ami-tools-1.4.0.9/bin/ec2-upload-bundle -b spongecell-amis-us-weset/dynode-instance-store/ -m /tmp/image.manifest.xml -a AKIAJBHCQSDFDAYVMRKA -s e+NcYgKbxCnvgN0HvgxXo1ySQDxClekc1E4F+H8M --location us-west-1
~/ec2-api-tools-1.6.12.0/bin/ec2-register spongecell-amis-us-weset/dynode-instance-store/image.manifest.xml -n dynode-instance-store -O AKIAJBHCQSDFDAYVMRKA -W e+NcYgKbxCnvgN0HvgxXo1ySQDxClekc1E4F+H8M --region us-west-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment