https://github.com/terraform-linters/tflint-ruleset-azurerm
TFLint ruleset for terraform-provider-azurerm
https://github.com/terraform-linters/tflint-ruleset-azurerm
azure azure-resource-manager terraform tflint tflint-ruleset
Last synced: 7 days ago
JSON representation
TFLint ruleset for terraform-provider-azurerm
- Host: GitHub
- URL: https://github.com/terraform-linters/tflint-ruleset-azurerm
- Owner: terraform-linters
- License: mpl-2.0
- Created: 2020-03-08T06:41:45.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-14T01:12:32.000Z (8 days ago)
- Last Synced: 2025-04-14T02:25:30.670Z (8 days ago)
- Topics: azure, azure-resource-manager, terraform, tflint, tflint-ruleset
- Language: Go
- Homepage:
- Size: 2.17 MB
- Stars: 124
- Watchers: 4
- Forks: 28
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - terraform-linters/tflint-ruleset-azurerm - TFLint ruleset for terraform-provider-azurerm (Go)
README
# TFLint Ruleset for terraform-provider-azurerm
[](https://github.com/terraform-linters/tflint-ruleset-azurerm/actions)
[](https://github.com/terraform-linters/tflint-ruleset-azurerm/releases/latest)
[](LICENSE)TFLint ruleset plugin for Terraform Provider for Azure (Resource Manager)
## Requirements
- TFLint v0.42+
- Go v1.24## Installation
You can install the plugin by adding a config to `.tflint.hcl` and running `tflint --init`:
```hcl
plugin "azurerm" {
enabled = true
version = "0.28.0"
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
}
```## Rules
200+ rules are available. See the [documentation](docs/README.md).
## 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`:
```hcl
plugin "azurerm" {
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.