Search code examples
amazon-web-servicesdnsamazon-route53amazon-alb

Bind Single Host to Multple Target Groups in AWS Application Load Balancer (ALB)


I'm using an AWS Application Load Balancer (ALB). I have three target groups listening on three different ports like so:

  • Target Group 1 - Port 5672
  • Target Group 2 - Port 5673
  • Target Group 3 - Port 5674

I want to bind a single host name to all three target groups or ports using any algorithm to select a target group (round robin or whatever):

  • foo.example.com Binds to Target Group 1, 2, & 3

How can this be achieved?


Solution

  • The point of target groups is that they are targets grouped together. A given request routes to exactly one target group, and all of the targets that can handle the request need to be in the same target group.