More Info:
EC2 instances registered to your Amazon Elastic Load Balancing (ELB) should be evenly distributed across all Availability Zones (AZs) in order to improve the ELBs configuration reliability.Risk Level
LowAddress
Reliability, SecurityCompliance Standards
- APRA CPS 234 (Australia)
- BSI C5 (Germany)
- Brazil LGPD
- CCPA / CPRA (California)
- CIS Critical Security Controls v8
- CMMC 2.0
- CSA Cloud Controls Matrix v4
- Cloudanix Best Practice
- DPDPA
- Digital Operational Resilience Act (EU)
- ISO/IEC 27017
- ISO/IEC 27018
- ISO/IEC 27701
- KSA PDPL
- MAS Technology Risk Management (Singapore)
- MITRE ATT&CK (Cloud)
- NIS2 Directive
- NIST SP 800-171
- NYDFS 23 NYCRR 500
- SWIFT Customer Security Controls Framework
- Sarbanes-Oxley IT General Controls
- UK NCSC Cyber Assessment Framework
Triage and Remediation
- Remediation
Remediation
Using Console
Using Console
To remediate the misconfiguration of ELBs not being evenly distributed over Availability Zones (AZs) in AWS, you can follow these steps:
- Log in to the AWS Management Console and navigate to the EC2 dashboard.
- Click on the Load Balancers option in the navigation pane.
- Select the ELB that you want to remediate and click on the Edit button.
- In the Availability Zones section, select the AZs that are not currently being used by the ELB.
- Click on the Add button to add the selected AZs to the ELB.
- Once the AZs have been added, click on the Remove button next to any AZs that are currently being used by the ELB but are not evenly distributed.
- Click on the Save button to save the changes.
- Verify that the ELB is now evenly distributed over all selected AZs by checking the Availability Zones section.
- Repeat the above steps for any other ELBs that are not evenly distributed over AZs.
Using CLI
Using CLI
To remediate the issue of ELBs not being evenly distributed over AZs in AWS using AWS CLI, follow the below steps:This command enables cross-zone load balancing for the ELB, which ensures that the traffic is evenly distributed across all the AZs.
- First, check the availability zones in which the ELB is currently running using the following command:
- If the ELB is not evenly distributed over the AZs, then you need to modify the ELB configuration to distribute it evenly over the AZs. You can use the following command to modify the ELB configuration:
- Once the modification is done, you can verify that the ELB is now evenly distributed over all AZs by running the command in step 1 again.
Using Python
Using Python
To remediate this misconfiguration in AWS, you can use the following steps using Python:
- Get a list of all the Elastic Load Balancers (ELBs) in your AWS account using the boto3 library.
- For each ELB, get the list of Availability Zones (AZs) it is currently deployed in.
- Check if the number of AZs the ELB is deployed in is less than the total number of AZs available in the region.
- If the number of AZs is less than the total number of AZs available in the region, evenly distribute the ELB across all the AZs.
- Once you have updated all the ELBs, verify that they are now evenly distributed across all the AZs in the region.
Using Terraform
Using Terraform
terraform plan should show an in‑place update like:~ aws_elb.THIS_LOAD_BALANCERcross_zone_load_balancing.enabled: "false" => "true"

