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.26.2 lib/awspec/helper/finder/rds.rb
awspec-0.26.1 lib/awspec/helper/finder/rds.rb
awspec-0.26.0 lib/awspec/helper/finder/rds.rb
awspec-0.25.3 lib/awspec/helper/finder/rds.rb
awspec-0.25.2 lib/awspec/helper/finder/rds.rb
awspec-0.25.1 lib/awspec/helper/finder/rds.rb
awspec-0.25.0 lib/awspec/helper/finder/rds.rb
awspec-0.24.2 lib/awspec/helper/finder/rds.rb
awspec-0.24.1 lib/awspec/helper/finder/rds.rb
awspec-0.24.0 lib/awspec/helper/finder/rds.rb
awspec-0.23.0 lib/awspec/helper/finder/rds.rb
awspec-0.22.1 lib/awspec/helper/finder/rds.rb
awspec-0.22.0 lib/awspec/helper/finder/rds.rb
awspec-0.21.6 lib/awspec/helper/finder/rds.rb
awspec-0.21.5 lib/awspec/helper/finder/rds.rb
awspec-0.21.4 lib/awspec/helper/finder/rds.rb
awspec-0.21.3 lib/awspec/helper/finder/rds.rb
awspec-0.21.2 lib/awspec/helper/finder/rds.rb
awspec-0.21.1 lib/awspec/helper/finder/rds.rb
awspec-0.21.0 lib/awspec/helper/finder/rds.rb