Hi all,
I have more than 50 projects on my Org, and our quotas are over the top. So, we're trying to clean up unused Lbs and FW rules, but i can't find a good solution to make this.
Is there any advices on this end? Searched over the internet, and didn't find a tool/Google Function to make that work.
Hello Thiago,
Please refer to the following Stack Overflow link, where you can find the proper steps for listing your load balancers.
Link: https://stackoverflow.com/questions/58505781/get-the-list-of-unused-load-balancers
Regards.
@ulisescasas Bro, that StackOverflow snippet uses Boto3... that's for AWS, not Google Cloud ..... should we switch to AWS? 😁
Thats for AWS...
Hi @thiagoalvesilva ,
Would this work for you? Start with the billing report for the billing account that's associated with your org. Filter the report to show the charges for the "Networking" service and the SKUs that have the text "Load Balancing" and "Data Processing". Identify the projects that have LBs that haven't incurred charges for handling requests. A caveat here is that billing charges might lag usage a little. After shortlisting the LBs that aren't incurring data processing charges, work with the owners of the backend apps to determine whether the LBs should be retained.
I hope this helps. Sorry, that I couldn't offer a ready-to-use solution!