You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: runatlantis.io/docs/policy-checking.md
+30-7
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,36 @@ policies:
49
49
source: local
50
50
```
51
51
52
-
`name` - A name of your policy set.
53
-
`path` - Path to a policies directory.
54
-
`source` - Tells atlantis where to fetch the policies from. Currently you can only host policies locally by using `local`.
52
+
-`name` - A name of your policy set.
53
+
-`path` - Path to a policies directory. *Note: replace `<CODE_DIRECTORY>` with absolute dir path to conftest policy/policies.*
54
+
-`source` - Tells atlantis where to fetch the policies from. Currently you can only host policies locally by using `local`.
55
+
56
+
By default conftest is configured to only run the `main` package. If you wish to run specific/multiple policies consider passing `--namespace` or `--all-namespaces` to conftest [`extra_args`](https://www.runatlantis.io/docs/custom-workflows.html#adding-extra-arguments-to-terraform-commands).
57
+
58
+
Example Server Side Repo configuration using `--all-namespaces` and a local src dir.
By default conftest is configured to only run the `main` package. If you want to change this behavior [`extra_args`](https://www.runatlantis.io/docs/custom-workflows.html#adding-extra-arguments-to-terraform-commands) can be used to pass in flags to conftest such as `--namespace` or `--all-namespaces`
96
-
:::
97
-
98
121
That's it! Now your Atlantis instance is configured to run policies on your Terraform plans 🎉
0 commit comments