Ensure that Load Balancer (Network/Gateway) has cross-zone load balancing enabled

Error: Load Balancer (Network/Gateway) does not have cross-zone load balancing enabled

Bridgecrew Policy ID: BC_AWS_NETWORKING_55
Checkov Check ID: CKV_AWS_152
Severity: LOW

Load Balancer (Network/Gateway) does not have cross-zone load balancing enabled

Description

Cross-zone load balancing is a feature that distributes incoming traffic evenly across the healthy targets in all enabled availability zones. This can help to ensure that your application is able to handle more traffic and reduce the risk of any single availability zone becoming overloaded and might be impact Load balancer's performance

Fix - Buildtime

Terraform

  • Resource: aws_lb
  • Argument: enable_cross_zone_load_balancing
resource "aws_lb" "enabled" {
  ...
+ enable_cross_zone_load_balancing = true
}