TFLint ruleset for terraform-provider-google
Last updated Jun 30, 2026
98
Stars
22
Forks
21
Issues
0
Stars/day
Attention Score
43
Language breakdown
Go 99.7%
Go Template 0.3%
HCL 0.0%
Makefile 0.0%
▸ Files
click to expand
README
TFLint Ruleset for terraform-provider-google
TFLint ruleset plugin for Terraform Google Cloud Platform provider
Requirements
- TFLint v0.46+
- Go v1.26
Installation
You can install the plugin by adding a config to .tflint.hcl and running tflint --init:
plugin "google" {
enabled = true
version = "0.39.0"
source = "github.com/terraform-linters/tflint-ruleset-google"
}
For more configuration about the plugin, see Plugin Configuration.
Rules
100+ rules are available. See the documentation.
Building the plugin
Clone the repository locally and run the following command:
$ make
You can easily install the built plugin with the following:
$ make install
Note that if you install the plugin with make install, you must omit the version and source attributes in .tflint.hcl:
plugin "google" {
enabled = true
}
Add a new rule
If you are interested in adding a new rule to this ruleset, you can use the generator. Run the following command:
$ go run ./rules/generator
Follow the instructions to edit the generated files and open a new pull request.
🔗 More in this category