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: governance/third-generation/README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,9 @@ The `tfconfig-functions` module has several types of functions:
92
92
*`items`: a map consisting of items that violate a condition.
93
93
*`messages`: a map of violation messages associated with the items.
94
94
* The same `to_string` and `print_violations` functions that are in the tfplan-functions module.
95
-
* A `get_module_source` function that computes the source of a module from its address. This is used in the [restrict-resources-by-module-source.sentinel](./cloud-agnostic/restrict-resources-by-module-source.sentinel) policy to restrict creation of resources based on the actual module sources.
95
+
* A `get_module_source` function that computes the source of a module from its address.
96
+
* A `get_ancestor_module_source` function that computes the source of the first ancestor module that is not a local module of a module from its address. This is used in the [restrict-resources-by-module-source.sentinel](./cloud-agnostic/restrict-resources-by-module-source.sentinel) policy to restrict creation of resources based on the actual module sources.
97
+
* A `get_parent_module_address` function that computes the address of the parent module of a module from its address.
96
98
97
99
Documentation for each individual function can be found in this directory:
Copy file name to clipboardExpand all lines: governance/third-generation/cloud-agnostic/test/restrict-resources-by-module-source/fail-nested-modules.hcl
0 commit comments