Creating ALB : Why do we need to select multiple subnets when creating ALB ? We are going map the ALB to Target group anyways.

0

Why do we need to select multiple subnets when creating ALB ? We are going map the ALB to Target group anyways. The target group will have EC2 instances from different subnet , so why this additional step of selecting Subnets when creating ALB ?

VPCloud
질문됨 일 년 전550회 조회
1개 답변
0
수락된 답변

Hello,

Subnets are tied to an Availability Zones, reason to choose 2 subnets is to actually select 2 Availability Zones, although you create 1 ALB it actually creates ENIs in each of the subnets/AZs you select. This is for the resiliency purposes, in the event that 1 AZ goes down you would still have ALB available via the 2nd AZ.

Specific wording from the official documentation


Select two or more Availability Zones and corresponding subnets. Enabling multiple Availability Zones increases the fault tolerance of your applications.

profile pictureAWS
전문가
답변함 일 년 전
profile picture
전문가
검토됨 24일 전
  • But when I am selecting a 'Target group', that target group will also have instances from different subnets and AZs. So if ALB is linked to the Target Group , shouldn't ALB be able to get the AZs + Subnets of the instances from the Target group ? I understand the reason why we need multiple AZ but don't understand why we need to explicitly select them while configuring ALB. The ALB should be able to get that from the Target group EC2 instances.

  • ALB does not inherit AZs from the Target groups, these are 2 different entities. You could technically have ALB in 2 AZs talking to Targets in 3 different AZs.

  • Thank you !!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠