# TFLint

> A Pluggable Terraform Linter

Source: https://talira.ai/catalog/tflint-4a8xgw05
Every listing: https://talira.ai/catalog.md

- Kind: Source available
- Types: Command-line tool
- Categories: [devops / infrastructure as code / linting](https://talira.ai/categories/devops/infrastructure-as-code/linting), [developer tools / linting](https://talira.ai/categories/developer-tools/linting)
- Platforms: linux, macos, windows, docker[^3]
- Licence: MPL-2.0 AND BUSL-1.1 (source-available)[^3][^4][^5]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^3]
- Plugins: yes[^3]

TFLint is a linter for [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md) code, built as a framework where every rule comes from a plugin: the bundled Terraform ruleset warns about deprecated syntax, unused declarations and naming conventions, and rulesets for AWS, Azure and Google Cloud catch errors such as invalid instance types before `terraform plan` does. It parses Terraform v1.x with its own fork of Terraform's parser, so Terraform needn't be installed. Most of it is MPL-2.0, but some files are BUSL-1.1, so the release binaries are bound by both.

## Links

- GitHub: https://github.com/terraform-linters/tflint
- Docs: https://github.com/terraform-linters/tflint/tree/master/docs

## Ways to install

### Package managers

- [WinGet](https://talira.ai/catalog/winget-g927bz13.md): <https://github.com/microsoft/winget-pkgs/tree/master/manifests/t/TerraformLinters/tflint>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/tflint>[^2]

## Problems it solves

- catch an invalid AWS instance type in our Terraform before apply fails
- warn about unused variables and deprecated syntax in our Terraform modules
- enforce naming conventions across our infrastructure code in CI
- lint Terraform on every pull request with a GitHub Action
- write our own lint rules for our company's Terraform conventions
- fail the build when someone uses a resource argument the provider deprecated

## Features

- plugin-based rulesets
- bundled Terraform ruleset with presets
- AWS, Azure and Google Cloud rulesets
- custom plugins installed with tflint --init
- input variables and tfvars evaluated like Terraform
- language server
- GitHub Action (setup-tflint) and Docker image

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.26 out of 1.
Signals: backing 0.00, extensibility 0.40.

- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Terraform](https://talira.ai/catalog/terraform-zdejdqmx.md)

## Alternatives

- [Checkov](https://talira.ai/catalog/checkov-x7fvaqw4.md): Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages
- [tfsec](https://talira.ai/catalog/tfsec-y170xfqd.md): Security scanner for your Terraform code

## Sources

[^1]: https://github.com/terraform-linters/tflint/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^3]: https://github.com/terraform-linters/tflint/blob/master/README.md (checked 19 Nov 2026)
[^4]: https://github.com/terraform-linters/tflint/blob/master/LICENSE (checked 19 Nov 2026)
[^5]: https://github.com/terraform-linters/tflint/blob/master/LICENSE-BUSL (checked 19 Nov 2026)
