- install api-tools
- install ami-tools
- generate key / cert
- create IAM user
- upload cert
- java install / export JAVA_HOME
- export key and secret
- ec2-bundle-vol
- --user <AWS acct #>
- --privatekey /myhome/my-key.pem
- --cert /myhome/my-cert.pem
- --arch x86_64
- --destination /var/tmp
- --exclude
- /backup,
- /mnt,
- /swapfile
- ec2-upload-bundle
- --manifest /var/tmp/image.manifest.xml
- --bucket mybucket/hostname
- --access-key <AWS Key>
- --secret-key <AWS Secret>
- --location EU
- ec2-register
- --region eu-west-1
- --name "myaminame"
- --description "Backing up hostname"
- mybucket/hostname/image.manifest.xml
Taken:
- http://www.dowdandassociates.com/content/howto-create-an-instance-store-backed-amazon-ec2-ami/
- http://www.dowdandassociates.com/content/howto-install-aws-cli-amazon-elastic-compute-cloud-ec2-ami-tools/
- http://www.dowdandassociates.com/content/howto-install-aws-cli-amazon-elastic-compute-cloud-ec2-api-tools/
NOTE: the above link's content has typos in very essential parts, proof all steps