TFlint plugin to validate modules source. The plugin contains ruleset to validate both Terraform Registry and non Terraform Registry modules.
- TFLint v0.40+
- Go v1.19
You can install the plugin with tflint --init
. Declare a config in .tflint.hcl
as follows:
plugin "module-verification" {
enabled = true
version = "0.1.0"
source = "github.com/ringanta/tflint-ruleset-module-verification"
}
See Rules
Clone the repository locally and run the following command:
make
You can run the test suites with the following command:
make test
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 "module-verification" {
enabled = true
}
EOS
$ tflint
Here is layout of directory of the repository
docs
contains documentation of module-verification rulesetexamples
contains list of examples how the rules can be usedrules
contains ruleset implementation of the module-verification plugin