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:
committed by
GitHub
parent
5e6f9a4332
commit
88306fe99a
@@ -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.
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user