Method: Awspec::Helper::Finder::Ec2#select_network_interface_by_vpc_id

Defined in:
lib/awspec/helper/finder/ec2.rb

#select_network_interface_by_vpc_id(vpc_id) ⇒ Object



195
196
197
198
199
200
# File 'lib/awspec/helper/finder/ec2.rb', line 195

def select_network_interface_by_vpc_id(vpc_id)
  res = ec2_client.describe_network_interfaces({
                                                 filters: [{ name: 'vpc-id', values: [vpc_id] }]
                                               })
  res.network_interfaces
end