Routing ports on same IP to different ELBs?

52 Views Asked by At

I'm working with a new setup and setting up two services behind ELBs:

  • ELB #1 on port 143
  • ELB #2 on port 80

I want to have both services available on the same external IP, whether another ELB or an Elastic IP or whatnot. However, I can't seem to add an ELB to an ELB, so that doesn't seem to be the solution.

How can I make this happen?

1

There are 1 best solutions below

0
On

Its Possible if you use Route53.

Chose a Route53 routing policy according to your scenario.

Refer: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html

Attach your two Elastic load balancers to Route53. Now your route53 handles traffic and routes it to the the 2 ELBs. And then your ELBs recieve traffic and route it to their respective resources.

Hope It Helps.. :)