---
title: "TFLint"
description: "Runs TFLint over every Terraform module directory with the bundled Terraform ruleset (recommended preset): unpinned module sources and versions, missing provider constraints, deprecated syntax, unused declarations, syntax errors. The project's .tflint.hcl and .tflint.d plugins are never loaded and `tflint --init` never runs: openaudit passes its own config. The AWS, Azure and Google rulesets (invalid instance types, sizes, regions) are enabled when their plugin binaries are installed in OPENAUDIT_TFLINT_PLUGIN_DIR (default /opt/tflint-plugins, as in the Docker image) and the code uses that provider. Module calls are not followed (--call-module-type=none), so nothing is downloaded."
url: https://openaudit.se/auditors/iac.tflint/
---

# TFLint

`iac.tflint`

Runs TFLint over every Terraform module directory with the bundled Terraform ruleset (recommended preset): unpinned module sources and versions, missing provider constraints, deprecated syntax, unused declarations, syntax errors. The project's .tflint.hcl and .tflint.d plugins are never loaded and `tflint --init` never runs: openaudit passes its own config. The AWS, Azure and Google rulesets (invalid instance types, sizes, regions) are enabled when their plugin binaries are installed in OPENAUDIT_TFLINT_PLUGIN_DIR (default /opt/tflint-plugins, as in the Docker image) and the code uses that provider. Module calls are not followed (--call-module-type=none), so nothing is downloaded.

- **Engine:** Wrapped scanner
- **Wraps:** `tflint`
- **Targets:** Infrastructure as code
- **Areas:** Reliability, Best practices, Supply chain
- **Runs:** By default, when the target applies
- **Network:** Only the target itself

## Run only this auditor

```sh
bunx @openaudit/cli . --only iac.tflint
```

Wraps tflint. When it isn't installed, the auditor is skipped with an install hint and the rest of the audit runs.

## More reliability auditors

- [actionlint](https://openaudit.se/auditors/iac.actionlint/) (`iac.actionlint`)
- [kubeconform](https://openaudit.se/auditors/iac.kubeconform/) (`iac.kubeconform`)
