Something like ec2-clone-instance or equivalent?
We've got suddenly quite high load and I want to drop another web node behind a load balancer, and I wasn't really prepared for this...
I should add that this an S3 backed instance.
Something like ec2-clone-instance or equivalent?
We've got suddenly quite high load and I want to drop another web node behind a load balancer, and I wasn't really prepared for this...
I should add that this an S3 backed instance.
I recommend running EBS boot instances for many reasons including this. However, it is possible to clone a running instance-store instance (run from an S3 backed AMI).
Here's an article I wrote over three years ago on how to do this:
I haven't tested this method in years, so it's possible that the command line tools have changed to require new options, even though Amazon works hard to stay backwards compatible.
Note that this will only copy the data on the root disk into the new AMI. File stored on ephemeral storage (e.g., /mnt) are not copied.
Note that after cloning an instance you end up with two copies of the system that you'll need to manage. This is not good for things that need to have a single, central copy like databases or file stores.
If you use the AWS Management Console -- the web based management console avaialble through aws.amazon.com, you can create a snapshot of your current system, then spin up new instances from this snapshot. It's quite fast to do so.