Remediation
The Load Balancer should be configured to use subnets in at least two different Availability Zones.
Configure Subnetsβ
From Command Lineβ
For Application, Network and Gateway Load Balancersβ
aws elbv2 set-subnets \
--load-balancer-arn {{load-balancer-arn}} \
--subnets {{subnet-id1}} {{subnet-id2}}
For a Classic Load Balancerβ
aws elb attach-load-balancer-to-subnets \
--load-balancer-name {{load-balancer-name}} \
--subnets {{subnet-id1}} {{subnet-id2}}