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 Antwort
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
EXPERTE
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen