I have an instance in AWS that I set up my entire environment (I'll call it my ready instance) on and is running perfectly. I then created a load balancer (ELB) with an autoscaling policy.

When I created a load balancer with an autoscaling policy (min of 2 instances), 2 instances sprung up. The instances were empty, however. For the launch configuration, I specified my ready instance AMI. Isn't this supposed to tell the autoscaling policy which instance to clone? In this case, shouldn't my ready instance be cloned into them and they should have the same content?


AN AMI image is a snapshot of an EC2 instance at the point-in-time when the AMI image was created.

The AMI associated with your EC2 instance is the AMI image used to create the instance. Everything you do to the EC2 instance since being created is not reflected in the originating AMI image.

What you are accomplishing now is creating copies of the original EC2 instance (not yours) that that AMI was created from.

To do what you want, you must configure your EC2 instance as you want it, then create a new AMI image. This is done in the AWS Management Console by selecting your EC2 instance, then choosing "Create Image" from the Actions menu. You can then use that new AMI image (with a new AMI ID) for your autoscaling.


Basically, you should have an AMI of the Instance first which Autoscaling will be using at the demand time.

Once after configuring the Autoscaling command line, using the autoscaling commands you have to tell Autoscaling which AMI should be used to launch an Instance at the time of demand.

  • I have a running instance, which has an AMI ID. Is this considered as "an AMI of the instance"? If not, how can I generate an "AMI of the instance"? I already told autoscale which AMI to use. I gave the launch configurations the AMI ID of the instance I want on demand as I Stated in the question.
    – darksky
    Mar 26 '13 at 13:52
  • Matt is correct, that is how you should create an AMI of your Instance. Make sure you have a perfect architecture before launching Autoscaling. Hope you would have got it.
    – Big Data
    Mar 27 '13 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.