This is the repository for ZeroNorth's custom TFLint ruleset.
- TFLint v0.40+
- Go v1.19
You can install the plugin with tflint --init
. Declare a config in .tflint.hcl
as follows:
plugin "0north-plugin" {
enabled = true
version = "1.0.0"
source = "github.com/0north/tflint-ruleset-0north-plugin"
}
Name | Description | Severity | Enabled | Link |
---|---|---|---|---|
ensure_default_tags | Ensures a set of required tags are present on all resources or providers. | ERROR | ✖️ | Link |
validate_tags | Ensures a given set of tags can only have a given range of values. | ERROR | ✖️ | Link |
Clone the repository locally and run the following command:
$ make
You can easily install the built plugin with the following:
$ make install
You can run the built plugin like the following:
$ cat << EOS > .tflint.hcl
plugin "0north-plugin" {
enabled = true
}
EOS
$ tflint