Control: ELB classic load balancers should have cross-zone load balancing enabled
Description
Enable cross-zone load balancing for your Elastic Load Balancers (ELBs) to help maintain adequate capacity and availability. The cross-zone load balancing reduces the need to maintain equivalent numbers of instances in each enabled availability zone.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.elb_classic_lb_cross_zone_load_balancing_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.elb_classic_lb_cross_zone_load_balancing_enabled --share
SQL
This control uses a named query:
select arn as resource, case when cross_zone_load_balancing_enabled then 'ok' else 'alarm' end as status, case when cross_zone_load_balancing_enabled then title || ' cross-zone load balancing enabled.' else title || ' cross-zone load balancing disabled.' end as reason , region, account_idfrom aws_ec2_classic_load_balancer;