turbot/aws_compliance

Query: elb_application_gateway_network_lb_multiple_az_configured

Usage

powerpipe query aws_compliance.query.elb_application_gateway_network_lb_multiple_az_configured

SQL

select
arn as resource,
case
when jsonb_array_length(availability_zones) < 2 then 'alarm'
else 'ok'
end as status,
title || ' has ' || jsonb_array_length(availability_zones) || ' availability zone(s).' as reason
, region, account_id
from
aws_ec2_application_load_balancer
union
select
arn as resource,
case
when jsonb_array_length(availability_zones) < 2 then 'alarm'
else 'ok'
end as status,
title || ' has ' || jsonb_array_length(availability_zones) || ' availability zone(s).' as reason
, region, account_id
from
aws_ec2_network_load_balancer
union
select
arn as resource,
case
when jsonb_array_length(availability_zones) < 2 then 'alarm'
else 'ok'
end as status,
title || ' has ' || jsonb_array_length(availability_zones) || ' availability zone(s).' as reason
, region, account_id
from
aws_ec2_gateway_load_balancer;

Controls

The query is being used by the following controls: