29

I created an Application Load Balancer in AWS.

How can I assign an Elastic IP address to the application load balancer? I didn't find any IP address in the load balancer description.

2
  • Balancers scale out, in, up, and down, so are typically accessed by hostame, because the IP addresses are not static. What problem are you trying to solve with an EIP? Are you trying to configure DNS? Or do you have a situation requiring a static address? Mar 19, 2019 at 15:33
  • One of the biggest problems with ALB is white listing it's auto-generated IPs. Also, as John Rotenstein stated below, the only solution so far is to use a NLB in front of ALB Apr 15, 2020 at 0:14

3 Answers 3

20

An Application Load Balancer cannot be assigned an Elastic IP address (static IP address).

However, a Network Load Balancer can be assigned one Elastic IP address for each Availability Zone it uses.

If you do not wish to use a Network Load Balancer, you can combine the two by putting the Network Load Balancer in front of the Application Load Balancer:

NLB in front of ALB

See: Using static IP addresses for Application Load Balancers | Networking & Content Delivery

1
10

You can now get global static IPs for your Application Load Balancer directly from the Load Balancer Management Console, either in the creation wizard or in the Integrated services tab. See this blog post.

2

Another option is to use AWS Global Accelerator: AWS Global Accelerator

However, it's probably going to be more expensive than using NLB - ALB architecture.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.