Sha256: 9a39036926e3a42fb7699e4f3d1e194d1179103e71df85ecf79760ecb9eae62f

Contents?: true

Size: 604 Bytes

Versions: 40

Compression:

Stored size: 604 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
                                                })
        return res[:db_instances].first if res[:db_instances].count == 1
      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

40 entries across 40 versions & 1 rubygems

Version Path
awspec-0.20.2 lib/awspec/helper/finder/rds.rb
awspec-0.20.1 lib/awspec/helper/finder/rds.rb
awspec-0.20.0 lib/awspec/helper/finder/rds.rb
awspec-0.19.0 lib/awspec/helper/finder/rds.rb
awspec-0.18.2 lib/awspec/helper/finder/rds.rb
awspec-0.18.1 lib/awspec/helper/finder/rds.rb
awspec-0.18.0 lib/awspec/helper/finder/rds.rb
awspec-0.17.1 lib/awspec/helper/finder/rds.rb
awspec-0.17.0 lib/awspec/helper/finder/rds.rb
awspec-0.16.0 lib/awspec/helper/finder/rds.rb
awspec-0.15.0 lib/awspec/helper/finder/rds.rb
awspec-0.14.1 lib/awspec/helper/finder/rds.rb
awspec-0.14.0 lib/awspec/helper/finder/rds.rb
awspec-0.13.0 lib/awspec/helper/finder/rds.rb
awspec-0.12.1 lib/awspec/helper/finder/rds.rb
awspec-0.12.0 lib/awspec/helper/finder/rds.rb
awspec-0.11.0 lib/awspec/helper/finder/rds.rb
awspec-0.10.2 lib/awspec/helper/finder/rds.rb
awspec-0.10.1 lib/awspec/helper/finder/rds.rb
awspec-0.10.0 lib/awspec/helper/finder/rds.rb