The Terraform run failed. The CI pipeline froze. Your team stares at the console, waiting for answers. Minutes turn to hours. The problem isn’t Terraform itself—it’s the weight you’ve piled on top of it. You need Lean Terraform.
Lean Terraform is the practice of stripping infrastructure code to its fastest, smallest, most reliable form. It means no sprawling modules nobody understands. No over-engineered state structures. No hard-coded hacks to patch over bad process. Every file should earn its place. Every resource should be clear in purpose.
The goal is speed, safety, and control. Lean Terraform reduces plan and apply times. It shrinks the blast radius of changes. It makes state management predictable. It allows for faster onboarding, easier reviews, and simpler refactors.
To apply Lean Terraform, start by breaking monolith repos into isolated modules managed by separate state files. Remove unused resources and variables. Lock down provider versions. Use only the features you need today, not what you might need later. Keep outputs minimal. Avoid abstracting until repetition demands it.