How To Create A New AWS Instance From A Snapshot
erics, August 16th, 2011
Be sure to create regular snapshots of your running instances. If you lose an instance, recover quickly with this procedure. I suggest that you use Elastic IP addresses to make the migration DNS-free. STEP 1: First, setup your environment properly
1 2 3 4 5 6 |
export EC2_HOME='/opt/aws/apitools/ec2' # Make sure you use the API tools, not the AMI tools export EC2_BIN=$EC2_HOME/bin export EC2_PRIVATE_KEY=/path/to/keys/pk-{Your Private Key ID Here}.pem export EC2_CERT=/path/to/keys/cert-{Your Private Key ID Here}.pem export PATH=$PATH:$EC2_BIN export JAVA_HOME=/usr/java/latest |
STEP 2: Create an AMI linked to the snapshot % ec2-register -n YOUR-AMI-NAME -d […]