I'm trying to route some traffic to one target group from two ELBs (ALBs). One is external & the other one is an internal one.
I have the following rules in my external ALB:
IF path is /static/* THEN forward to frontends IF path is /media/* THEN forward to frontends
An internal ALB has to direct it's traffic to the same target group 'frontends', but the group is grayed out & can't be selected :(
As a workaround I've created another target group 'frontends2' & selected it on the internal ALB.
But we're preparing for autoscaling so having 2 separate target groups for the same group of instances is not convenient.
I'm using AWS web console for configuration. Is it possible to achieve my goal through it(same target group, different ALBs) or do I have to use CLI?
P.S. btw will it be the same with autoscaling groups? We're planning to autoscale a group of instances based on parameters like cpu load.