0

For a new instance created for EC2 in AWS cloud, trying to assign the same to load balancer based on target group.

Steps followed:

  • Created load balancer
  • Created EC2 instance and configured security group with inbound traffic allowed from load balancer
  • Created target group and added EC2 instance in target
  • Configured the listener in load balancer to redirect specific path ('/taskA/*') to newly created target group.

After above steps waited for a while for target groups to initialize and setup. Later observed that under Registered targets section, status shows unhealthy and it says health check failed.

Not sure what needs to be checked since the status description also dont mention exact failure reasons.

Please help to understand better this issue by sharing your views.

Expecting the target group to work as expected and for any incoming request it should check for url path configured and redirect to specific instance page as configured in load balancer.

2
  • 1
    are you running any application in that EC2 Instance? Commented Apr 20, 2023 at 9:24
  • No application at the moment.
    – Joe Jones
    Commented Apr 21, 2023 at 1:40

1 Answer 1

0

Target group health check is different from instance health check.

Its purpose is to check if the application in your instance works correctly by sending request to the port which you specified and check if that port returns http status code as expected.

There must be application running on your selected port for target group to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.