This is a template repository for building a custom ruleset. You can create a plugin repository from "Use this template".
- TFLint v0.18+
- Go v1.14
Download the plugin and place it in ~/.tflint.d/plugins/tflint-ruleset-template
(or ./.tflint.d/plugins/tflint-ruleset-template
). When using the plugin, configure as follows in .tflint.hcl
:
plugin "template" {
enabled = true
}
Name | Description | Severity | Enabled | Link |
---|---|---|---|---|
aws_instance_example_type | Example rule for accessing and evaluating top-level attributes | ERROR | ✔ | |
aws_s3_bucket_example_lifecycle_rule | Example rule for accessing top-level/nested blocks and attributes under blocks | ERROR | ✔ | |
local_file_example_provisioner | Example rule for accessing reserved attributes/blocks such as "provisioner" | ERROR | ✔ | |
terraform_backend_type | Example rule for accessing the backend configuration | ERROR | ✔ |
Clone the repository locally and run the following command:
$ make
You can easily install the built plugin with the following:
$ make install