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.43.0 lib/awspec/helper/finder/rds.rb
awspec-0.42.0 lib/awspec/helper/finder/rds.rb
awspec-0.41.0 lib/awspec/helper/finder/rds.rb
awspec-0.40.0 lib/awspec/helper/finder/rds.rb
awspec-0.39.0 lib/awspec/helper/finder/rds.rb
awspec-0.38.0 lib/awspec/helper/finder/rds.rb
awspec-0.37.8 lib/awspec/helper/finder/rds.rb
awspec-0.37.7 lib/awspec/helper/finder/rds.rb
awspec-0.37.6 lib/awspec/helper/finder/rds.rb
awspec-0.37.5 lib/awspec/helper/finder/rds.rb
awspec-0.37.4 lib/awspec/helper/finder/rds.rb
awspec-0.37.3 lib/awspec/helper/finder/rds.rb
awspec-0.37.2 lib/awspec/helper/finder/rds.rb
awspec-0.37.1 lib/awspec/helper/finder/rds.rb
awspec-0.37.0 lib/awspec/helper/finder/rds.rb
awspec-0.36.1 lib/awspec/helper/finder/rds.rb
awspec-0.36.0 lib/awspec/helper/finder/rds.rb
awspec-0.35.0 lib/awspec/helper/finder/rds.rb
awspec-0.34.0 lib/awspec/helper/finder/rds.rb