Deepesh Uniyal
Deepesh Uniyal

Reputation: 991

Can AWS ALB forward the traffic to another ALB

We have two Nginx running and first Nginx receives the traffic after checking some rules forwarding the traffic to another Nginx, now we are moving this to AWS ALB, but not found any option for forwarding traffic from one ALB to another ALB.

Please help me on how to do this.

I know these two ALB is a Design problem but at this point in time we can not change this, the team will do this in the future.

Upvotes: 7

Views: 9739

Answers (2)

Bernie Lenz
Bernie Lenz

Reputation: 2146

I wish that could be done as there are valid use cases for chaining ALBs. As a work around I've seen what @Vlad suggested combined with a lambda that runs once a minute, reading the IPs of the second ALB and then setting the target group of the first ALB with the IPs of the second ALB. Still a hack though in my mind but it's all that we've got...

Upvotes: 1

Vlad
Vlad

Reputation: 9481

Unfortunately you forward traffic only from NLB to ALB. As far as I know AWS does not support forwarding from ALB to ALB. You can sort of cheat on it by create a fixed IP target group, but this is not very stable because ELBs IP addresses can change any time without notice

Upvotes: 3

Related Questions