How to Remediate Amazon RDS Idle Instances with Stratusphere™ FinOps
Learn to reduce AWS costs with Stratusphere™ FinOps by efficiently remediating idle Amazon RDS instances, plus strategies to optimize your RDS...
Streamline your AWS costs: eliminate idle load balancers with Stratusphere™ FinOps. Discover how to remediate underutilized AWS Elastic Load Balancers now!
Amazon Elastic Load Balancer (ELB) is a managed load balancing service that helps you build scalable and highly-available business applications. There are several different types of load balancers available in the ELB service, including the OSI Layer 4 Network Load Balancer (NLB), the Layer 7 Application Load Balancer (ALB), and the Gateway Load Balancer.
When you provision a load balancer, you also configure one or more service “backends” that requests will be forwarded to, and fulfilled by. The load balancer doesn’t fulfill requests itself, it simply balances the inbound requests across an array of backends.
Since backend services can fail, the ELB service allows you to specify “health checks” that periodically run against the backends (aka. targets), to ensure they’re responding in a timely manner and with an appropriate HTTP status code.
With AWS, and any other cloud vendor, it’s easy to deploy load balancers. However, any provisioned load balancers will increase your AWS monthly spend, even if they’re not actively being used. You might deploy a load balancer, with the intention of using it, but never configure any backend services to route inbound requests to.
You might also stand up a new application, with a configured load balancer, but end users aren’t accessing it due to lack of awareness. In scenarios like this, the load balancer is costing you money every month, but isn’t providing any business value.
Stratusphere™ is a Software-as-a-Service (SaaS) tool from StratusGrid that helps you identify load balancers that aren’t being utilized. Stratusphere™ works at the organizational level, so you can visualize this data across every AWS region, and all of your AWS accounts. There are filters available, so you can limit which portfolio companies (for Private Equity firms), AWS regions, and AWS services you’re targeting.
Under the Findings section of Stratusphere™, you can specify the Service filter for Elastic Load Balancing, and identify unused load balancers with the “Idle Load Balancers” finding. Check out the screenshot below for an example. An idle load balancer is identified as one that has one of the following conditions:
Stratusphere™ acquires these findings from the AWS Trusted Advisor service, and aggregates them to simplify your cost savings journey at scale.
Now that you have learned how to identify idle load balancers in your AWS accounts, let’s discuss how you can remediate this cost optimization finding.
Before you remediate an AWS load balancer, it’s important to note some of the risks associated with this activity.
There are a couple of different ways you can go about remediating the idle load balancer finding.
The easiest method of remediating this situation is to simply delete the load balancer from your AWS account, so we’ll focus on this approach. Delete the load balancer will stop billing for that resource, and reduce the accruing costs on your next invoice. Elastic Load Balancer is part of the Amazon EC2 service umbrella. To delete an ELB from your AWS account, follow the steps below.
After following these manual steps, the load balancer may take a moment to delete. Once the resource is gone, your next AWS invoice should reflect the reduced hours of load balancer spend. You can repeat this process for each ELB identified in the Stratusphere™ cost optimization findings.
If you need to remediate a large number of AWS load balancers, across many different AWS regions and accounts, then automating the process will save you a significant amount of time. You can use any of the AWS Software Development Kits (SDK) to call the necessary REST APIs that delete the load balancers. Common tools for this include the AWS CLI tool and the AWS Tools for PowerShell modules.
You can install these tools on your local development workstation or access them through the built-in AWS CloudShell environment, from the AWS Management Console.
The following AWS CLI commands will help you discover and delete the specified load balancer from your AWS account.
# Discovery the load balancers provisioned in a specific region
aws elbv2 describe-load-balancers --region us-west-1
# Delete the load balancer with the specified Amazon Resource Name (ARN)
aws elbv2 delete-load-balancer --region us-west-1 --load-balancer-arn arn:aws:elasticloadbalancing:us-west-1:973081273628:loadbalancer/app/sg01/b546bfba02159130
The AWS Tools for PowerShell can help you automate the discovery and deletion of load balancers as well. Because there’s a separate PowerShell module for each AWS service, you’ll need to install the module that targets ELB.
Install-Module -Name AWS.Tools.ElasticLoadBalancingV2 -Scope CurrentUser -Force
# Retrieve a list of load balancers, in the specified AWS region
Get-ELB2LoadBalancer -Region us-west-1
# Delete the load balancer with the specified ARN
Remove-ELB2LoadBalancer -LoadBalancerArn '<paste_arn_here>' -Region us-west-1
Idle load balancers can increase your AWS costs, without providing any business value, if they are unconfigured, misconfigured, the backend service is unhealthy, or end users simply aren’t accessing them.
You can easily remediate these cost findings by removing the load balancer from your AWS account. You can also fix the backend application, configure load balancers that are unconfigured, or drive user traffic to the service, to remediate this finding.
If you need help performing more advanced automation for cost optimization findings, feel free to reach out to the StratusGrid team. We would love the opportunity to partner with you and assist with optimizing your entire cloud environment!
Here are some additional resources about Amazon Elastic Load Balancing (ELB) service.
BONUS: Download Your FinOps Guide to Effective Cloud Cost Optimization Here ⤵️
Learn to reduce AWS costs with Stratusphere™ FinOps by efficiently remediating idle Amazon RDS instances, plus strategies to optimize your RDS...
Discover how to efficiently backfill Cost and Usage Reports (CUR) from AWS into StratusGrid's cost optimization dashboard Stratusphere™ FinOps in our...
Optimize your AWS Lambda functions by uncovering over-provisioning with Stratusphere™ FinOps by StratusGrid. Ensure cost efficiency and performance...