
TFLint ruleset plugin for Terraform Google Cloud Platform provider
Requirements
Installation
Download the plugin and place it in ~/.tflint.d/plugins/tflint-ruleset-google (or ./.tflint.d/plugins/tflint-ruleset-google). When using the plugin, configure as follows in .tflint.hcl:
plugin "google" {
enabled = true
}
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
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.