---
name: tflint
description: "Use when adopting TFLint to assess this standard: Validate Terraform with provider rules"
---

# Apply TFLint

Pin the provider rulesets, initialize them and lint each relevant module. Review invalid resource arguments and deprecated instance types before deployment.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by TFLint.
2. Use TFLint in this repository to meet this standard: Validate Terraform with provider rules. Pin the provider rulesets, initialize them and lint each relevant module. Review invalid resource arguments and deprecated instance types before deployment. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://github.com/terraform-linters/tflint) for configuration and prerequisites.

## Tool invocation

```
tflint --recursive
```
