def kill_zombies(max_age = ZOMBIE, key = key_name)
      @logger.notify("aws-sdk: Kill Zombies! (keyname: #{key}, age: #{max_age} hrs)")

      instances_to_kill = []

      time_now = Time.now.getgm #ec2 uses GM time

      #examine all available regions
      regions.each do |region|
        @logger.debug "Reviewing: #{region}"

        client(region).describe_instances.reservations.each do |reservation|
          reservation.instances.each do |instance|
            if (instance.key_name =~ /#{key}/)
              @logger.debug "Examining #{instance.instance_id} (keyname: #{instance.key_name}, launch time: #{instance.launch_time}, state: #{instance.state.name})"
              if ((time_now - instance.launch_time) >  max_age*60*60) and instance.state.name !~ /terminated/
                @logger.debug "Kill! #{instance.instance_id}: #{instance.key_name} (Current status: #{instance.state.name})"
                instances_to_kill << instance
              end
            end
          end
        end
      end

      kill_instances(instances_to_kill)
      delete_key_pair_all_regions(key_name_prefix)

      @logger.notify "#{key}: Killed #{instances_to_kill.length} instance(s)"
    end
def kill_zombies(max_age = ZOMBIE, key = key_name)
      @logger.notify("aws-sdk: Kill Zombies! (keyname: #{key}, age: #{max_age} hrs)")

      instances_to_kill = []

      time_now = Time.now.getgm #ec2 uses GM time

      #examine all available regions
      regions.each do |region|
        @logger.debug "Reviewing: #{region}"

        client(region).describe_instances.reservations.each do |reservation|
          reservation.instances.each do |instance|
            if (instance.key_name =~ /#{key}/)
              @logger.debug "Examining #{instance.instance_id} (keyname: #{instance.key_name}, launch time: #{instance.launch_time}, state: #{instance.state.name})"
              if ((time_now - instance.launch_time) >  max_age*60*60) and instance.state.name !~ /terminated/
                @logger.debug "Kill! #{instance.instance_id}: #{instance.key_name} (Current status: #{instance.state.name})"
                instances_to_kill << instance
              end
            end
          end
        end
      end

      kill_instances(instances_to_kill)
      delete_key_pair_all_regions(key_name_prefix)

      @logger.notify "#{key}: Killed #{instances_to_kill.length} instance(s)"
    end
Shutdown and destroy ec2 instances idenfitied by key that have been alive
 longer than ZOMBIE hours.

 @param [Integer] max_age The age in hours that a machine needs to be older than to be considered a zombie
 @param [String] key The key_name to match for