TFLint is a plugin-based static analysis utility designed to identify potential errors and improve the quality of Terraform infrastructure configurations. It detects invalid resource settings, deprecated syntax, unused declarations, and violations of established coding conventions. Dedicated provider plugins support infrastructure validation for Amazon Web Services, Microsoft Azure, and Google Cloud Platform. Developers can configure individual rules and severity thresholds through project-specific configuration files. Its extensible architecture supports custom rules written in Go or expressed through Open Policy Agent policies. Multiple output formats facilitate automated reporting and continuous integration. Integrated language server functionality enables diagnostics within compatible code editors. TFLint supports Windows, macOS, and Linux.
Features
- Static Terraform configuration analysis with automated detection of potential infrastructure deployment errors
- Cloud provider-specific validation through dedicated AWS, Microsoft Azure, and Google Cloud Platform plugins
- Detection of deprecated syntax, unused declarations, invalid resource configurations, and naming convention violations
- Customizable project-level linting rules with configurable severity thresholds and plugin initialization
- Extensible rule development through Go-based plugins and Open Policy Agent policy definitions
- Language server integration with structured diagnostic reporting and automated CI/CD compatibility