Error Creating Load Balancer: InvalidConfigurationRequest

0

I'm trying to deploy WordPress in Elastic Beanstalk but unable to launch successfully due to an error "Creating load balancer failed Reason: A load balancer cannot be attached to multiple subnets in the same Availability Zone (Service: AmazonElasticLoadBalancing; Status Code: 400; Error Code: InvalidConfigurationRequest; Request ID; Proxy: null)".

I checked that each subnet hast its public and private and attached to one Availability Zone. Overall, I have four subnets for two Availability Zones. How do I resolve this? Any help is appreciated and thank you.

  • Only select one subnet from each AZ

profile picture
Vin
asked 9 months ago349 views
1 Answer
1
Accepted Answer

What is the subnetting configuration of the ALB going to look like?
Is it possible for you to tell us what kind of setting you are expecting?
That error occurs when the ALB selects a subnet in the same AZ.
My assumption is that simply setting the public subnets of AZ1 and AZ2 to ALB will solve the problem.

profile picture
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago
  • Thank you again Riku! This is related to the 403 Forbidden issue that I'm trying to resolve if you remember. If I configure the initial setup correctly this error will be resolved.

    The subnetting configuration of my ALB is as follows: Availability Zones (AZs): I need to deploy the ALB across two Availability Zones (AZ1 and AZ2) to ensure high availability and fault tolerance. By distributing the ALB across multiple AZs, I can ensure that it can handle traffic even if one of the AZs experiences issues.

    Subnets: In each of the selected Availability Zones, I will choose public subnets for the ALB placement. Public subnets are necessary to allow the ALB to receive incoming traffic from the internet and distribute it to backend instances running in private subnets.

    Since I want my ALB to be accessible from the internet, I will configure it as an internet-facing load balancer. This will allow it to have a public IP address and handle incoming traffic from clients outside of my VPC. The ALB will be responsible for forwarding traffic to the backend instances running in private subnets. These backend instances will host my web application.

    Can you please let me know what do you actually mean by "My assumption is that simply setting the public subnets of AZ1 and AZ2 to ALB will solve the problem"?

  • Thanks for replying. In other words, the error is caused by selecting a subnet in the same AZ. So you need to make sure that the subnet is selected correctly.

  • Thank you Riku and Gary for guiding me to the right direction. When I chose only 1 subnet for each zone, it was resolved. I selected a private subnet to each zone in EC2 and RDS and 1 public subnet to each zone in the load balancer.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions