11 responses

  1. Amila
    January 9, 2010

    as-create-launch-config example3autoscale –image-id ami-mydefaultami \
    –instance-type m1.small

    I tried to create a launch config with a user data file as well
    i.e –user-data-file

    seems to be it is also not working. I get following error.

    as-create-launch-config: program error

    • barce
      January 24, 2010

      You need to download the as tools. Also, apologies for not using double hyphens. e.g. this blog is messing things up a bit.

      as-create-launch-config example3autoscale -–image-id ami-mydefaultami \
      -–instance-type m1.small

  2. Giles Smith
    November 5, 2010

    Thanks for the article, was a great help in getting my scaling group up and running.

    just one thing, you have a spelling mistake: CPUUtlization should be CPUUtilization

  3. mina
    September 24, 2011

    i configure all the AWS_AUTO_SCALING parameters.. and as-cmd works properly. but when i try to do as-create-launch-config i recieve program error,,, although i’ve done the exact same process on another instance and it works.. any help is really appreciated !! thanks :)

  4. mina
    September 24, 2011

    is it any thing with availability zone?

  5. Nikolai
    November 18, 2011

    Thank you for that very helpful guide. Couldn’t find the information on how to add an auto-scaled instance to a load balancer on aws website.

  6. Elango
    February 12, 2012

    Thanks for the Guide. I have a query in the example we have created instacnce bases on cpu utilization , but if we want to do the same based on some custom logic , how can we achieve that ..


  7. Athipathy
    October 7, 2013

    Is it possible to Scale a single VM vertically in amazon with the autoscaling feature ?

    Note : the Maximum and Minimum size of the group will always remain 1 in my use case.
    I just want to Scale up the Instance when a desired threshold reaches.

    • barce
      October 7, 2013

      Out of the box auto-scaling does not scale vertically.

      You would have to write code that does the following:
      1. Create a launch config with the next VM up in capacity and be sure that the current VM is using a static IP address.
      2. When a threshold is reached, autoscaling will start a new instance that is “one up” in capacity.
      3. Have code that de-commissions the smaller instance.
      4. Have code that re-assigns the IP address of the smaller VM to the new larger one.
      5. repeat step 1.

      This is a general way to do it. If you have EBS volumes, you’ll have to write code to handle that. You’ll have to write code to handle any particular details.

      I hope this helps.

Leave a Reply




Back to top
mobile desktop