turbot/aws_insights

Query: vpc_security_groups_for_ec2_gateway_load_balancer

Usage

powerpipe query aws_insights.query.vpc_security_groups_for_ec2_gateway_load_balancer

SQL

select
sg.group_id
from
aws_vpc_security_group sg,
aws_ec2_gateway_load_balancer as alb
where
alb.arn = $1
and sg.group_id in
(
select
jsonb_array_elements_text(alb.security_groups)
);