- Newest
- Most votes
- Most comments
Hello
You can use ALB and NLB, As we do not have the rules for the for NLB we can use ALB for the redirecting to targets. Here is the flow
Please check the example design look ALB and NLB only https://miro.medium.com/max/700/1*YuG-jq-PGFfiHlsI7daA2w.png
Configuration:
- Create First Target Group --> as EC2 instances can be used for the ALB
- Crate Second target Group --> as target ALB
- Create Application Load balancer and assign target group **First Target Group ** thease are your EC2
- Create Network Load balancer to manager the traffic of UDP/TCP and assign target group Second target Group this is ALB
- If you would like to add rules based on path or Host based you can use ALB
Please let me know if you have any questions
Thank You GK
Thanks for your suggestion. In your diagram when the UDP traffic comes in through the IGW, the ALB will handle that UDP traffic before going to the NLB? Do you have any documentation on the ALB handling UDP traffic as everything I have read lists that as a limitation. If that is the case I don't even need a NLB, but my entire problem was that the NLB could not do host based routing and that the ALB could not route UDP traffic.
I don't even need a load balancer as much as I just need basic routing rules. I want to have
- abc.example.com
- def.example.com
- ghi.example.com
Today they route to
- abc.example.com -> route53 -> ec2 random aws public IP
- def.example.com -> route53 -> different ec2 different public IP
- ghi.example.com -> route53 -> third different ec2 different public IP
What I want is
- abc.example.com -> route53 -> elastic IP
- def.example.com -> route53 -> same elastic IP as above
- ghi.example.com -> route53 ->same elastic IP as above
In a non-cloud world I would have all of those as my local ISP provided IP address. Then in my firewall I would assign requests to
- abc.example.com -> internal IP 1 (and allow port rules)
- def.example.com -> internal IP 2 (and allow port rules)
- ghi.example.com -> internal IP 3 (and allow port rules)
So I am using 1 public IP and handling the mapping. I feel like this should be a very easy thing to configure, but I cant figure it out.
Relevant content
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago