Member-only story

How to: Static IP for ALB

Nazreen Mohamad
1 min readOct 11, 2021

--

This is a Quick & Simple post on how to set up static IP addresses for an Application Load Balancer (ALB)in AWS.

Before 27 September 2021, the only way for you to have a static ALP for your Application Load Balancer was for you to do something hacky using Lambda and Network Load Balancer (NLB). You would have your Lambda periodically check the IP addresses of your ALB that would keep changing, and update your NLB to point to those dynamically changing IP addresses.

AWS responded to this common problem by making it possible to be done in a cleaner way through an official feature.

No, ALBs will not support static IP addresses and you’ll still need an NLB. However now, you can add your ALB as a target for NLB. Read from the official announcement here: https://aws.amazon.com/about-aws/whats-new/2021/09/application-load-balancer-aws-privatelink-static-ip-addresses-network-load-balancer/

--

--

Nazreen Mohamad
Nazreen Mohamad

Written by Nazreen Mohamad

Technical Instructor and Software Engineer.

No responses yet