For a tool for cleaning up idle cloud resources, the first results are cloud-custodian/cloud-custodian, rebuy-de/aws-nuke and infracost/infracost (Infracost estimates the cost impact of infrastructure-as-code changes before deployment, but it does not scan for or clean up existing unused resources, which is the core capability you are looking for). robusta-dev/krr and tfsec/tfsec round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Automated utilities that identify and remove idle cloud infrastructure to reduce monthly operational expenses.
Cloud Custodian is an open-source rules engine that uses declarative YAML policies to query, filter, and take automated actions on cloud resources for governance and compliance. It functions as a stateless policy execution engine, where each policy evaluation runs as an independent, idempotent operation without maintaining internal state between runs. Policies are defined using a YAML-based domain-specific language that structures rules as a query-filter-action pipeline. The engine supports dry-run validation, allowing users to simulate policy actions against live resources without applying c
Cloud Custodian is a policy-driven rules engine that uses declarative YAML policies to automatically discover and clean up unused cloud resources across AWS, Azure, and GCP, with built-in dry-run validation, scheduled execution, and filtering by resource type—directly addressing automated cost optimization and waste reduction.
aws-nuke is an AWS account cleanup tool that scans every resource in an AWS account and removes them, leaving the account clean for reuse or decommissioning. It enumerates all resource types by iterating through service APIs and paginating results, then deletes resources in parallel using goroutines while throttling against AWS API rate limits. The tool applies a config-file-driven filter pipeline that lets users exclude or include specific resource types, protect individual resources by matching their identifiers, and define reusable filter presets that can be applied across multiple account
aws-nuke is an AWS-specific tool for aggressively deleting all resources to clean an entire account, not for identifying and removing only unused resources to save costs—it lacks multi-cloud support, unused resource analysis, cost reporting, and scheduling, making it a neighbouring cleanup tool rather than a cost-optimization solution.
Infracost is an infrastructure-as-code financial governance platform that calculates the cost impact of cloud resource changes. By performing static analysis on configuration files, the tool identifies infrastructure resources and their properties to estimate spending changes before deployment occurs. The platform distinguishes itself by integrating directly into development workflows, providing automated cost reporting and policy validation within pull request comments. It utilizes a modular architecture to map infrastructure definitions to real-time pricing data from cloud providers, allowi
Infracost estimates the cost impact of infrastructure-as-code changes before deployment, but it does not scan for or clean up existing unused resources, which is the core capability you are looking for.
KRR is an open-source tool for analyzing Kubernetes resource requests and recommendations. It evaluates how pods are currently configured and provides suggestions for optimizing CPU and memory allocations based on actual usage patterns. The project focuses on helping teams right-size their Kubernetes workloads by identifying over-provisioned and under-provisioned resources. It scans clusters and generates reports that highlight where adjustments can reduce costs or improve performance without compromising reliability. KRR is distributed as a Python command-line tool that can be run directly
KRR is a Kubernetes-specific resource right-sizing tool that identifies over-provisioned pods and recommends optimized allocations, but it does not scan for or clean up unused cloud resources like idle instances or unattached volumes across multiple clouds, which is the core of this search.
tfsec is a static analysis tool and security scanner for infrastructure as code, specifically designed to detect misconfigurations and compliance violations in Terraform and cloud infrastructure definitions before deployment. It functions as a cloud security policy engine that identifies vulnerabilities across multiple cloud platforms. The tool provides capabilities for cloud compliance auditing and scanning of Cloud Development Kit code. It supports custom security policy enforcement and allows for the definition of organization-specific security requirements. The scanner includes features
tfsec is a static analysis security scanner for Terraform configurations, focused on detecting misconfigurations and compliance violations, not on discovering or cleaning up unused cloud resources to reduce waste — so it is a neighbouring cloud tool but not what this search is after.
This project is a unified, cloud-native policy engine designed to decouple authorization and security logic from application codebases. It functions as a centralized authorization service that evaluates structured input data against declarative rules, enabling consistent policy enforcement across microservices, infrastructure, and continuous integration pipelines. The engine utilizes a specialized logic programming language to express complex constraints, which are compiled into an optimized intermediate representation for high-performance evaluation. By supporting both sidecar-based deployme
OPA is a policy engine for enforcing authorization and compliance rules, not a tool that scans cloud environments or identifies and removes unused resources, so it does not directly address the need for automated cloud resource cleanup and cost optimization.
Nomad is a distributed workload orchestrator and infrastructure automation platform designed to manage the lifecycle of applications across large-scale, heterogeneous environments. It functions as a multi-cloud orchestration engine, providing a unified control plane to deploy, scale, and govern containers, virtual machines, and legacy applications. By utilizing declarative job specifications, the system ensures infrastructure convergence and maintains the desired state across distributed data centers and geographic regions. The platform distinguishes itself through a flexible, plugin-based ar
Nomad is a workload orchestrator for deploying and managing applications, not a tool for discovering and cleaning up unused cloud resources; while it shares the infrastructure automation domain, its core purpose is scheduling and running workloads rather than identifying cloud waste.
pyinfra is a Python-based infrastructure automation framework that turns Python code into shell commands for managing servers, Docker containers, and local machines. It operates as a declarative, idempotent deployment tool, applying desired system states by comparing target configurations against current states and making only the necessary changes. The framework provides a connector-based transport abstraction that unifies SSH, Docker, and local execution behind a common interface, with a parallel execution engine that manages concurrent operations across hosts. The tool distinguishes itself
pyinfra is a general infrastructure automation framework for managing servers and containers, not a specialized tool for automatically discovering and cleaning up unused cloud resources to reduce waste; it lacks built-in scanning, cost reporting, dry-run preview, and cleanup workflows focused on cost optimization.
pyinfra is an agentless infrastructure automation framework that turns declarative Python code into idempotent shell commands to manage servers, containers, and local machines over SSH without requiring any pre-installed software on target hosts. It operates by comparing the desired state of a system against its current state, using a dry-run simulation mode to preview changes and a fact-based conditional execution engine to gather host attributes at runtime and control which operations run. The tool compiles Python operations into optimized shell commands and executes them in parallel across
pyinfra is an agentless infrastructure automation framework for managing servers via SSH, not a dedicated cloud resource cleanup tool — its dry-run and state-comparison engine could be adapted for cleanup scripts, but it lacks built-in multi-cloud scanning, unused-resource identification, or cost reporting.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| cloud-custodian/cloud-custodian | 6K | Python | Apache-2.0 | |
| rebuy-de/aws-nuke | 5.8K | Go | MIT | |
| 12.4K |
| Go |
| Apache-2.0 |
| robusta-dev/krr | 4.5K | Python | mit |
| tfsec/tfsec | 7K | Go | MIT |
| open-policy-agent/opa | 11.9K | Go | Apache-2.0 |
| hashicorp/nomad | 16.2K | Go | other |
| pyinfra-dev/pyinfra | 5.8K | Python | MIT |
| fizzadar/pyinfra | 5.8K | Python | MIT |