Add support for Workload Identity to project module and project factory (#3531)

* module-level support

* fast stage 0

* fix inventory, add outputs/tfvars

* wip

* project factory

* pf outputs

* iam templates will be added where ci/cd configs are managed

* fix merge conflicts
This commit is contained in:
Ludovico Magnocavallo
2025-11-17 08:31:21 +01:00
committed by GitHub
parent 87ed19bc47
commit 897c6ef8c3
29 changed files with 1487 additions and 143 deletions

View File

@@ -24,11 +24,9 @@ locals {
ctx_kms_keys = merge(local.ctx.kms_keys, {
for k, v in google_kms_key_handle.default : "$kms_keys:autokeys/${k}" => v.kms_key
})
ctx_p = "$"
location = lookup(
local.ctx.locations, var.location, var.location
)
prefix = var.prefix == null ? "" : "${var.prefix}-"
ctx_p = "$"
location = try(local.ctx.locations[var.location], var.location)
prefix = var.prefix == null ? "" : "${var.prefix}-"
project_id = var.project_id == null ? null : lookup(
local.ctx.project_ids, var.project_id, var.project_id
)