Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 638 Bytes

configuration.md

File metadata and controls

26 lines (17 loc) · 638 Bytes

Configuration

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"
}

policy_dir

Default: ./.tflint.d/policies, ~/.tflint.d/policies

Change the directory from which policies are loaded. The priority is as follows:

  1. policy_dir in the config
  2. TFLINT_OPA_POLICY_DIR environment variable
  3. ./.tflint.d/policies
  4. ~/.tflint.d/policies

A relative path is resolved from the current directory.