turbot/aws_insights

Query: ec2_network_load_balancer_az_zone

Usage

powerpipe query aws_insights.query.ec2_network_load_balancer_az_zone

SQL

select
'Availibility Zones' as label,
count(az ->> 'ZoneName') as value,
case when count(az ->> 'ZoneName') > 1 then 'ok' else 'alert' end as type
from
aws_ec2_network_load_balancer
cross join jsonb_array_elements(availability_zones) as az
where
arn = $1;

Dashboards

The query is used in the dashboards: