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.58.0 lib/awspec/helper/finder/rds.rb
awspec-0.57.1 lib/awspec/helper/finder/rds.rb
awspec-0.57.0 lib/awspec/helper/finder/rds.rb
awspec-0.56.1 lib/awspec/helper/finder/rds.rb
awspec-0.56.0 lib/awspec/helper/finder/rds.rb
awspec-0.55.0 lib/awspec/helper/finder/rds.rb
awspec-0.54.0 lib/awspec/helper/finder/rds.rb
awspec-0.52.4 lib/awspec/helper/finder/rds.rb
awspec-0.52.3 lib/awspec/helper/finder/rds.rb
awspec-0.52.2 lib/awspec/helper/finder/rds.rb
awspec-0.52.1 lib/awspec/helper/finder/rds.rb
awspec-0.52.0 lib/awspec/helper/finder/rds.rb
awspec-0.51.0 lib/awspec/helper/finder/rds.rb
awspec-0.50.0 lib/awspec/helper/finder/rds.rb
awspec-0.49.0 lib/awspec/helper/finder/rds.rb
awspec-0.48.0 lib/awspec/helper/finder/rds.rb
awspec-0.47.0 lib/awspec/helper/finder/rds.rb
awspec-0.46.0 lib/awspec/helper/finder/rds.rb
awspec-0.45.0 lib/awspec/helper/finder/rds.rb
awspec-0.44.0 lib/awspec/helper/finder/rds.rb