ALB, EC2 Instance must be in the same subnet?

0

My Public ELB is connected to Public Subnet A, Public Subnet B. And there is an EC2 instance in Private Subnet C in the same AZ. In the above environment, the EC2 Instance in Private Subnet C is registered in the Target Group of this Public ELB and used well. Here I want to add instances from Private Subnet D (same AZ) to Target Group of this Public ELB. Request Timeout occurs, can you tell me why and how to solve it?

已提問 1 年前檢視次數 1258 次
1 個回答
0

There should be no problem having an EC2 instance as a target in a different subnet to the ALB as per the diagrams on this page as long as they're all in the same VPC.

Check to make sure that any NACLs allow access between the subnets. Also check the security groups on the instances to make sure that they allow access on the appropriate ports.

profile pictureAWS
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南