def my_key_pairs(name_filter=nil)
      keypairs_by_region = {}
      key_name_filter = name_filter ? "#{name_filter}-*" : key_name

      regions.each do |region|
        keypairs_by_region[region] = client(region).describe_key_pairs(
          :filters => [{ :name => 'key-name', :values => [key_name_filter] }]
        ).key_pairs.map(&:key_name)
      end

      keypairs_by_region
    end
def my_key_pairs(name_filter=nil)
      keypairs_by_region = {}
      key_name_filter = name_filter ? "#{name_filter}-*" : key_name

      regions.each do |region|
        keypairs_by_region[region] = client(region).describe_key_pairs(
          :filters => [{ :name => 'key-name', :values => [key_name_filter] }]
        ).key_pairs.map(&:key_name)
      end

      keypairs_by_region
    end
Gets the Beaker user's keypairs by region

 @param [String] name_filter if given, will get all keypairs that match
   a simple {::String#start_with?} filter. If no filter is given, the basic key
   name returned by {#key_name} will be used.

 @return [Hash{String=>Array[String]}] a hash of region name to
   an array of the keypair names that match for the filter
 @api private