turbot/aws_insights

Query: vpc_security_groups_for_ec2_network_interface

Usage

powerpipe query aws_insights.query.vpc_security_groups_for_ec2_network_interface

SQL

select
distinct sg ->> 'GroupId' as security_group_id
from
aws_ec2_network_interface as eni,
jsonb_array_elements(groups) as sg
where
eni.network_interface_id = $1;