Method: Awspec::Helper::Finder::Ec2#select_network_interface_by_instance_id
- Defined in:
- lib/awspec/helper/finder/ec2.rb
#select_network_interface_by_instance_id(id) ⇒ Object
170 171 172 173 174 175 |
# File 'lib/awspec/helper/finder/ec2.rb', line 170 def select_network_interface_by_instance_id(id) res = ec2_client.describe_network_interfaces({ filters: [{ name: 'attachment.instance-id', values: [id] }] }) res.network_interfaces end |