turbot/aws_insights

Query: ec2_network_interfaces_for_ec2_instance

Usage

powerpipe query aws_insights.query.ec2_network_interfaces_for_ec2_instance

Steampipe Tables

SQL

select
network_interface ->> 'NetworkInterfaceId' as network_interface_id
from
aws_ec2_instance as i,
jsonb_array_elements(network_interfaces) as network_interface
where
i.arn = $1
and i.region = split_part($1, ':', 4)
and i.account_id = split_part($1, ':', 5);