def log_instances(key = key_name, status = /running/)
      instances = []
      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}/) and (instance.state.name =~ status)
              instances << instance
            end
          end
        end
      end
      output = ""
      instances.each do |instance|
        dns_name = instance.public_dns_name || instance.private_dns_name
        output << "#{instance.instance_id} keyname: #{instance.key_name}, dns name: #{dns_name}, private ip: #{instance.private_ip_address}, ip: #{instance.public_ip_address}, launch time #{instance.launch_time}, status: #{instance.state.name}\n"
      end
      @logger.notify("aws-sdk: List instances (keyname: #{key})")
      @logger.notify("#{output}")
    end
def log_instances(key = key_name, status = /running/)
      instances = []
      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}/) and (instance.state.name =~ status)
              instances << instance
            end
          end
        end
      end
      output = ""
      instances.each do |instance|
        dns_name = instance.public_dns_name || instance.private_dns_name
        output << "#{instance.instance_id} keyname: #{instance.key_name}, dns name: #{dns_name}, private ip: #{instance.private_ip_address}, ip: #{instance.public_ip_address}, launch time #{instance.launch_time}, status: #{instance.state.name}\n"
      end
      @logger.notify("aws-sdk: List instances (keyname: #{key})")
      @logger.notify("#{output}")
    end
Print instances to the logger. Instances will be from all regions
 associated with provided key name and limited by regex compared to
 instance status. Defaults to running instances.

 @param [String] key The key_name to match for
 @param [Regex] status The regular expression to match against the instance's status