Module: Awspec::Helper::Finder::Rds
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/rds.rb
Instance Method Summary collapse
Instance Method Details
#find_rds(id) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/awspec/helper/finder/rds.rb', line 4 def find_rds(id) # db_instance_identifier res = rds_client.describe_db_instances({ db_instance_identifier: id }) res.db_instances.single_resource(id) end |
#select_rds_by_vpc_id(vpc_id) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/awspec/helper/finder/rds.rb', line 12 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 |