I'm trying to create and configure Load Balancer. The Availability Zones section has only one subnet and one zone for me.
I faced error:
At least two subnets must be specified.
Simple question - what should I do? thanks.
ALBs require 2 subnets since so that if 1 availability zone goes down the ALB can still operate on the others.
The load balancer must have at least one subnet at all times. You can add at most one subnet per Availability Zone. You cannot add a Local Zone subnet.
Subnets for your load balancer. When you create an Application Load Balancer, you must specify one of the following types of subnets: Availability Zone, Local Zone, or Outpost. You must select at least two Availability Zone subnets.
ALB requires at least two subnets across Availability Zones, NLB requires one subnet.
You'll first need to create two or more subnets in your VPC. It's typically good practice to create at least one subnet for each availability zone (AZ) in your region. Be sure to select public/private as is appropriate for your architecture.
There isn't a specific example in the AWS documentation, but be sure to first understand VPC concepts and the creation of subnets. See Scenarios and Examples for the closest example walkthroughs for creating subnets.
Selecting subnets when configuring an ELB should be straightforward now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With