Can an Application Load Balancer have a static IP

0

I have an integration in progress with a 3rd party partner.

My service is running via ECS/Fargate behind an Application Load Balancer.

The consumer of the service requires a static IP address (or multiple addresses) for their firewall rules to be able to access my application through the Application Load Balancer.

I have not been able to see how to either retrieve the IP address pool associated with my load balancer or to set it up such that it has static IP address associations.

Can an ALB be setup to use static IP address(es)?

Thank you, Ron

Ron B
asked 3 months ago844 views
2 Answers
3
Accepted Answer

No, an ALB always changes its IP addresses. However, you can set up a Network Load Balancer, which always has static IPs, and use the target group type of "Application Load Balancer" to point the NLB to your ALB. This way, you can reach your ALB with static IP addresses by connecting to the NLB.

There's more on the topic in this announcement post: https://aws.amazon.com/about-aws/whats-new/2021/09/application-load-balancer-aws-privatelink-static-ip-addresses-network-load-balancer/

And more details in this one: https://aws.amazon.com/blogs/networking-and-content-delivery/application-load-balancer-type-target-group-for-network-load-balancer/

EXPERT
Leo K
answered 3 months ago
EXPERT
reviewed 3 months ago
profile picture
EXPERT
reviewed 3 months ago
  • Thanks so much for a quick response! I'll look into the NLB and see how this might help my situation.

1

Short answer, no, ALB will never have static IPs. NLB has an option to have static IPs.

If static IPs are a requirement you can do NLB -> ALB -> app target

This has to do with NLB being a Layer 4 load balancer and ALB being a Layer 7 (app) load balancer.

Hope this helps!

profile pictureAWS
EXPERT
iBehr
answered 3 months ago
EXPERT
reviewed 3 months ago
  • Thanks so much for a quick response! This seems to be the recommended path forward according to your response and others I've received. Much appreciated.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions