Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've recently completed a project using EC2 for hosting, problem is it keeps launching an AMI when I terminate my running instance. How do I prevent this from happening? I dont' want any running instances.

I've looked through the documentation and kind find an solution (It's probably really obvious).

share|improve this question
do you have anything in cloudwatch to make sure so many instances are running? – Mike Mar 1 '13 at 12:28
I'm not using cloudwatch, what I want to do is not have any instances running. – Phil Mar 1 '13 at 13:12
Look in you account for an Auto Scaling group configured with a minimum number of instances. – Eric Hammond Mar 1 '13 at 17:22
up vote 1 down vote accepted

You must have configured Auto Scaling. All you have to do is either deleting the Auto Scaling if you don't need it or modify the auto scaling group to let the minimum and desired sizes equal 0 as below

as-update-auto-scaling-group YourAutoScalingGroup --desired-capacity 0 --min-size 0 --max-size 0 -I YourKey -S YourPassword

Or Delete it as below in the same order

  1. Policies
  2. Auto Scaling Group
  3. Launch Configuration

    as-delete-policy YourPolicyName --auto-scaling-group YourAutoScalingGroup -I YourKey -S YourPassword

    as-delete-auto-scaling-group YourAutoScalingGroup --force-delete -I YourKey -S YourPassword

    as-delete-launch-config YourLaunchConfigurationName -I YourKey -S YourPassword

share|improve this answer
Thanks, sorry for the delay in accepting your solution. – Phil Mar 15 '13 at 15:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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