Keeps TFLint Config file up-to-date
- TFLint
- .tflint-all.hcl
- uses version and source for plugins.
- uses
preset=all
for Terraform.
- .tflint.hcl
- remove version and source for plugins, and uses latest versions.
- uses
preset=recommended
for Terraform.
- AWS Plugin - TFLint ruleset for terraform-provider-aws
- Terraform Plugin - TFLint ruleset for Terraform Language
- OPA Plugin - Experimental: TFLint ruleset plugin for writing custom rules in Rego.
The Terraform rules can be found on GitHub. Most of the rules are part of the recommended
preset through the Terraform plugin. Optionally, you can enable the following rules when required:
- terraform_comment_syntax Disallow
//
comments in favor of#
- terraform_documented_outputs Disallow
output
declarations without description - terraform_documented_variables Disallow
variable
declarations without description - terraform_naming_convention Enforces naming conventions for resources, data sources, etc
- terraform_standard_module_structure Ensure that a module complies with the Terraform Standard Module Structure
- terraform_unused_required_providers Check that all
required_providers
are used in the module
Contribution is welcome. Please use conventional commit messages for your commits and pull request titles. Through GitHub Actions the CHANGELOG gets updated, tag created and release published with the TFLint configuration files as assets.