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 réponse
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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions