AWS re:Postを使用することにより、以下に同意したことになります AWS re:Post 利用規約

EB Create fails to create "ElasticLoadBalancer" must specify 2 Availability zones

0

I'm trying to create an application and an environment with ELB CL, all steps are fine but Load Balancer doesn't get created:

[ERROR] Creating load balancer failed Reason: Resource handler returned message: "At least two subnets in two different Availability Zones must be specified (Service: ElasticLoadBalancingV2, Status Code: 400,

My VPC specifies 2 public subnets as the Technical Essentials tutorial specify. What should I do to fix this error :

  • Are those subnets created in different AZs or its the same AZ? Can you verify that?

  • @Aanchal Agrawal : in different AZ

2回答
1

It seems the issue is that the load balancer is not able to select subnets across two different Availability Zones as required.

Please check the following:

  • Verify that the VPC has at least two public subnets, each located in a different Availability Zone.
  • When creating the load balancer, select one public subnet from Availability Zone 1 and one from Availability Zone 2.
  • Ensure the security groups allow access on the listener port and health check port from the load balancer to the target instances.
  • Check that no network ACLs are blocking necessary traffic to/from the load balancer subnets
profile picture
エキスパート
回答済み 9ヶ月前
  • 1-VPC has 2 different AZs 2-Load Balancer is created in 2 different AZs (us-west-2b & 2a) 3-I'm launching my application with EB CLI, thus it's creating the Load Balancer itself; I'm only providing it with the subnets' IDs. 4-Checked the ACL associated with the VPC and it has Outbound rule and Inbound rules allowing from-to the internet

1

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.

AWS
サポートエンジニア
回答済み 9ヶ月前
  • I can't differentiate between vpc.elb and vpc.ec2; do I need two different VPCs for the creation of EBS ?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ