Find unused Application Load Balancers (ALBs) and Network Load Balancers (NLBs) and remove them from your AWS account in order to help lower the cost of your AWS bill. An Amazon ELBv2 load balancer is considered "unused" when the associated target group has no target instance registered or when the registered target instances are not healthy anymore.
This rule can help you work with the AWS Well-Architected Framework.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
optimisation
You are being charged for each hour or partial hour that a ELBv2 load balancer is running, regardless whether you are using the resource or not. Removing unused AWS cloud resources like an Application Load Balancer (ALB) or a Network Load Balancer (NLB) will help you avoid unexpected charges on your AWS bill.
Audit
Case A: To determine if the target groups associated with your ELBv2 load balancers have registered target instances, perform the following actions:
Case B: To determine if the target groups associated with your ELBv2 load balancers have healthy target instances registered, perform the following actions:
Remediation / Resolution
To delete any unused Application Load Balancers (ALBs) and Network Load Balancers (NLBs) available within your AWS cloud account, perform the following actions:
References
- AWS Documentation
- Application Load Balancers
- Target Groups for Your Application Load Balancers
- Health Checks for Your Target Groups
- Delete an Application Load Balancer
- AWS Command Line Interface (CLI) Documentation
- elbv2
- describe-load-balancers
- describe-target-groups
- describe-target-health
- delete-load-balancer
- CloudFormation Documentation
- Elastic Load Balancing V2 resource type reference
- Terraform Documentation
- AWS Provider