- Newest
- Most votes
- Most comments
Elastic Load Balancers don't have a single predictable private IP address. They will start out using one IP per subnet you've configured, but will scale up using more as needed. The DNS entry for the load balancer actually returns this dynamic pool of addresses, not just one IP. So your NAT should target the load balancer by DNS name not IP. You can use the default DNS name or create a custom one in Route 53 - an A record which is a special "Alias" type that can reference the load balancer.
It is possible to put NLB in front of ALB. ALB cannot have fixed IP addresses, but NLB can.
Targeted Solution NAT --> NLB --> ALB --> Web Server x3
That is a great article, TY. Are there any drawbacks to putting the NLB in front of the ALB? For example, would I lose any functionality or features with the ALB, or would it increase the cost is my solution/application?
I just remembered that another option for static IP on an ALB is Global Accelerator - https://docs.aws.amazon.com/global-accelerator/latest/dg/about-accelerators.alb-accelerator.html
Relevant content
- Accepted Answerasked 4 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago
Got it. If I can't control how the NAT would target the destination (DNS vs IP), could I use a NLB with a static IP to an ALB?