Sha256: 07ee5d4d506d006d2c667858d5eadceec80aed52625bed749bf478273abc6f92

Contents?: true

Size: 570 Bytes

Versions: 59

Compression:

Stored size: 570 Bytes

Contents

module Awspec::Helper
  module Finder
    module Rds
      def find_rds(id)
        # db_instance_identifier
        res = rds_client.describe_db_instances({
                                                 db_instance_identifier: id
                                               })
        res.db_instances.single_resource(id)
      end

      def select_rds_by_vpc_id(vpc_id)
        res = rds_client.describe_db_instances
        res.db_instances.select do |db_instance|
          db_instance.db_subnet_group.vpc_id == vpc_id
        end
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
awspec-0.69.0 lib/awspec/helper/finder/rds.rb
awspec-0.68.0 lib/awspec/helper/finder/rds.rb
awspec-0.67.1 lib/awspec/helper/finder/rds.rb
awspec-0.67.0 lib/awspec/helper/finder/rds.rb
awspec-0.66.2 lib/awspec/helper/finder/rds.rb
awspec-0.66.1 lib/awspec/helper/finder/rds.rb
awspec-0.66.0 lib/awspec/helper/finder/rds.rb
awspec-0.65.2 lib/awspec/helper/finder/rds.rb
awspec-0.65.1 lib/awspec/helper/finder/rds.rb
awspec-0.65.0 lib/awspec/helper/finder/rds.rb
awspec-0.64.0 lib/awspec/helper/finder/rds.rb
awspec-0.63.1 lib/awspec/helper/finder/rds.rb
awspec-0.63.0 lib/awspec/helper/finder/rds.rb
awspec-0.62.1 lib/awspec/helper/finder/rds.rb
awspec-0.62.0 lib/awspec/helper/finder/rds.rb
awspec-0.61.1 lib/awspec/helper/finder/rds.rb
awspec-0.61.0 lib/awspec/helper/finder/rds.rb
awspec-0.60.1 lib/awspec/helper/finder/rds.rb
awspec-0.60.0 lib/awspec/helper/finder/rds.rb
awspec-0.59.0 lib/awspec/helper/finder/rds.rb