Method: Awspec::Helper::Finder::Rds#select_rds_by_vpc_id
- Defined in:
- lib/awspec/helper/finder/rds.rb
#select_rds_by_vpc_id(vpc_id) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/awspec/helper/finder/rds.rb', line 17 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 |