Adding missing context replacement type to project factory README, add folder_ids to project condition vars (#3642)

* Adding missing context replacement type to project factory README

* add folder ids to project context condition vars
This commit is contained in:
Ludovico Magnocavallo
2026-01-12 14:41:07 +01:00
committed by GitHub
parent 5e6f9a4332
commit 88306fe99a
3 changed files with 13 additions and 2 deletions

View File

@@ -572,6 +572,12 @@ factories_config:
services:
- container.googleapis.com
- storage.googleapis.com
org_policies:
gcp.restrictCmekCryptoKeyProjects:
rules:
- allow:
values:
- under:${folder_ids.team-a}
workload_identity_pools:
test-0:
display_name: Test pool.

View File

@@ -94,6 +94,11 @@ module "projects" {
each.value.contacts, var.data_merges.contacts
)
context = merge(local.ctx, {
condition_vars = {
folder_ids = {
for k, v in local.ctx_folder_ids : replace(k, "$folder_ids:", "") => v
}
}
folder_ids = local.ctx_folder_ids
})
default_service_account = try(each.value.default_service_account, "keep")