내용으로 건너뛰기

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

2개 답변
3
수락된 답변

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/

전문가
답변함 일 년 전
전문가
검토됨 일 년 전
전문가
검토됨 일 년 전
  • 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!

AWS
전문가
답변함 일 년 전
전문가
검토됨 일 년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.