Skip to content

Elastic IP created automatically by ALB and I cannot disassociate or delete

0

I am using aws account for my product since 3 years. On dec 20 an elastic ip is created automatically by ELB, I cannot disscosiate or delete it from my side. It is tagged to ALB

Can someone explain the what might be the reason for elastic ip creation

asked 10 months ago2.2K views

2 Answers
3

Application Load Balancers (ALBs) use Public Elastic IPv4 addresses from EC2's public IPv4 address pool. These IP addresses appear in your AWS account and are visible when using the describe-addresses CLI, API, or when viewing the Elastic IPs (EIP) section in the AWS Console.

Each ALB-associated IP address is marked with a service_managed attribute set to "ALB". While these IPs are visible in your account, they are fully managed by the Application Load Balancer service and cannot be modified or released by you. This is why you're unable to disassociate or delete the Elastic IP.

This is normal behavior for internet-facing Application Load Balancers. The ALB service automatically manages these IPs and will release them back into the public IPv4 address pool when they are no longer in use (such as when you delete the ALB).

It's worth noting that since January 2024, AWS has started charging for public IPv4 addresses, which might explain why you're noticing this now if you hadn't paid attention to it before. These service-managed Elastic IPs for ALBs are subject to the public IPv4 address charges.

If you no longer need the ALB, you would need to delete the ALB itself, and then the service will automatically release the associated Elastic IP addresses.
Sources
Application Load Balancers - ELB
Charged for a public IPv4 address of VPC in free tier | AWS re:Post

answered 10 months ago

AWS
EXPERT

reviewed 10 months ago

1

Yes, this behavior is expected.

Application Load Balancers do not support user-managed Elastic IPs, but AWS internally assigns service-managed public IPv4 addresses to internet-facing ALBs. These IPs are shown in the EC2 Elastic IP section with a service_managed = ALB tag.

You cannot disassociate or delete these IPs because they are fully managed by the ALB service. AWS creates and releases them automatically as the ALB scales or when the ALB is deleted.

You may be noticing this now because AWS started charging for public IPv4 addresses in 2024, and to support billing transparency, these service-managed IPv4 addresses are now visible in customer accounts. Even though they appear as Elastic IPs, they are not static and can change at any time.

If you delete the ALB, AWS will automatically release the associated service-managed IPs.

Optional clarification (if someone asks about static IPs)

If static IP addresses are required for allow-listing, the supported solution is to place a Network Load Balancer (NLB) in front of the ALB. NLB supports static Elastic IPs and can forward traffic to an ALB using an ALB-type target group.

Reference: https://repost.aws/questions/QU-VlS2bqXTJil3WEwJkfHiA/can-an-application-load-balancer-have-a-static-ip

Official AWS references

Application Load Balancer target type for Network Load Balancer https://aws.amazon.com/blogs/networking-and-content-delivery/application-load-balancer-type-target-group-for-network-load-balancer/

AWS announcement – ALB with static IPs via NLB / PrivateLink https://aws.amazon.com/about-aws/whats-new/2021/09/application-load-balancer-aws-privatelink-static-ip-addresses-network-load-balancer/

answered 10 months ago

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.