By using at least two subnets in different Availability Zones (AZs) with the Cross-Zone Load Balancing feature enabled, your Classic Load Balancer can distribute your application traffic evenly across all registered instances. To use Cross-Zone Load Balancing at optimal level, AWS recommends maintaining an equal EC2 capacity distribution in each of the AZs registered with the load balancer.
This rule can help you with the following compliance standards:
- NIST4
For further details on compliance standards supported by Conformity, see here.
This rule can help you work with the AWS Well-Architected Framework.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
Enabling Cross-Zone Load Balancing makes it easier to deploy and manage applications that run across multiple subnets in different Availability Zones (AZs). This would also guarantee better fault tolerance and more consistent traffic flow. If one of the AZs configured for the load balancer fails (as result of network outage or power loss), the load balancer with the Cross-Zone Load Balancing enabled would act as a traffic guard, stopping any request being sent to the unhealthy zone, and routing it to the other available zone(s).
Audit
To determine if Cross-Zone Load Balancing is enabled for your Classic Load Balancers, perform the following actions:
Remediation / Resolution
To enable Cross-Zone Load Balancing with at least two subnets in different Availability Zones (AZs), you need to perform the following actions:
References
- AWS Documentation
- Elastic Load Balancing FAQs
- Configure your Classic Load Balancer
- Configure cross-zone load balancing for your Classic Load Balancer
- AWS Command Line Interface (CLI) Documentation
- elb
- describe-load-balancers
- describe-load-balancer-attributes
- modify-load-balancer-attributes
- CloudFormation Documentation
- AWS::ElasticLoadBalancing::LoadBalancer
- Terraform Documentation
- AWS Provider