def teardown
      triggers.each do |trigger|
        trigger.teardown
      end
      if autoscaling_groups.select {|n| n.name == name }.empty?
        puts "Cloud #{cloud.name} autoscaling group does not exist"
      else
        self.minimum_instances = 0
        self.maximum_instances = 0
        @new_launch_configuration_name = old_launch_configuration_name
        puts "Updating autoscaling group: #{@new_launch_configuration_name}"
        update_autoscaling_group!
        puts "Terminating nodes in autoscaling group: #{name}"
        reset!
        # cloud.nodes.each {|n| n.terminate! }
        delete_autoscaling_group!
        delete_launch_configuration!
        puts ""
      end
    end
def teardown
      triggers.each do |trigger|
        trigger.teardown
      end
      if autoscaling_groups.select {|n| n.name == name }.empty?
        puts "Cloud #{cloud.name} autoscaling group does not exist"
      else
        self.minimum_instances = 0
        self.maximum_instances = 0
        @new_launch_configuration_name = old_launch_configuration_name
        puts "Updating autoscaling group: #{@new_launch_configuration_name}"
        update_autoscaling_group!
        puts "Terminating nodes in autoscaling group: #{name}"
        reset!
        # cloud.nodes.each {|n| n.terminate! }
        delete_autoscaling_group!
        delete_launch_configuration!
        puts ""
      end
    end
First, change the min_count to