TFLint ruleset plugin for Terraform Provider for Azure (Resource Manager)
- TFLint v0.42+
- Go v1.22
You can install the plugin by adding a config to .tflint.hcl
and running tflint --init
:
plugin "azurerm" {
enabled = true
version = "0.27.0"
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
}
200+ rules are available. See the documentation.
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 "azurerm" {
enabled = true
}
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.