2 Answers
I think this blog post describes exactly what you need for the on-premises resources:
.
And this document shows how to register multiple target groups with your ELB.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/register-multiple-targetgroups.html
.
However, I think you may need multiple ALBs and handle the traffic routing to each ALB with DNS.
Two ALBs is needed:
one associate with "instance" type of target group (to support ASG)
another associate with "ip" type of target group (to support on-prem servers)
Thanks for the response, I agree with your conclusion that I need multiple ALBs.
I had read the first link, but it does not have any details. The second link is about ECS.