A tiny utility that detects unused variables in Terraform modules to help keep configurations clean.
Terraform Cleaner is a tiny utility that detects unused variables in Terraform modules. It helps developers identify and remove variables that are declared but never referenced, keeping infrastructure-as-code configurations clean and efficient.
Terraform users and DevOps engineers who manage infrastructure-as-code and want to maintain clean, optimized Terraform modules.
It provides a simple, focused solution for detecting unused variables, integrates with pre-commit hooks for automated checks, and is lightweight with easy-to-use binaries for various platforms.
Tiny utility which detects unused variables in your terraform modules
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
It specifically scans for variables declared but never referenced, helping eliminate clutter in Terraform modules without bloated features, as emphasized in its minimalist philosophy.
The tool supports pre-commit hooks for automated checks before commits, with clear instructions in the README and a pre-commit badge, ensuring code quality in CI workflows.
Offers downloadable binaries for various platforms via the releases page, making installation straightforward without dependencies, as highlighted in the key features.
Provides a simple command-line interface with minimal configuration, aligning with its goal of doing one thing well and reducing overhead for users.
Only detects unused variables and does not check for other issues like unused resources, security misconfigurations, or syntax errors, requiring additional tools for comprehensive linting.
The README is brief and lacks detailed examples, troubleshooting guides, or advanced configuration options, which could hinder onboarding and edge-case handling.
It reports unused variables but doesn't automatically remove or fix them, leaving manual cleanup to developers, which adds overhead in large codebases.