This plugin can take advantage of additional features by configure the plugin block. Currently, this configuration is only available for customizing a policy directory.
Here's an example:
plugin "opa" {
// Plugin common attributes
policy_dir = "./policies"
}
Default: ./.tflint.d/policies
, ~/.tflint.d/policies
Change the directory from which policies are loaded. The priority is as follows:
policy_dir
in the configTFLINT_OPA_POLICY_DIR
environment variable./.tflint.d/policies
~/.tflint.d/policies
A relative path is resolved from the current directory.