Add gcp org policy constraints file to bootstrap stage (#1775)

* add gcp org policy constraints file to bootstrap

* make the org policy factories more resilient
This commit is contained in:
Ludovico Magnocavallo
2023-10-18 20:21:16 +02:00
committed by GitHub
parent b0c552cff5
commit 77a4696aa6
4 changed files with 22 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
locals {
_factory_data_raw = merge([
for f in try(fileset(var.org_policies_data_path, "*.yaml"), []) :
yamldecode(file("${var.org_policies_data_path}/${f}"))
try(yamldecode(file("${var.org_policies_data_path}/${f}")), {})
]...)
# simulate applying defaults to data coming from yaml files