From b6887a6d55e97a0380a0acc042ac8fbc11cab588 Mon Sep 17 00:00:00 2001 From: temiloluwa ademuwagun Date: Fri, 17 Jun 2022 10:35:15 +0000 Subject: [PATCH 1/2] fixed iam dependency issue --- examples/factories/project-factory/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/factories/project-factory/main.tf b/examples/factories/project-factory/main.tf index 774fc1d64a..b9f64361c2 100644 --- a/examples/factories/project-factory/main.tf +++ b/examples/factories/project-factory/main.tf @@ -28,7 +28,7 @@ locals { _service_accounts_iam = { for r in local._service_accounts_iam_bindings : r => [ for k, v in var.service_accounts : - "serviceAccount:${k}@${local._project_id}.iam.gserviceaccount.com" + module.service-accounts[k].iam_email if try(index(v, r), null) != null ] } From 4492b0cff7dfdaba1afb302fcc87b0988c1cc179 Mon Sep 17 00:00:00 2001 From: temiloluwa ademuwagun Date: Fri, 17 Jun 2022 10:36:19 +0000 Subject: [PATCH 2/2] corrected the wrong name reference --- fast/stages/03-project-factory/dev/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fast/stages/03-project-factory/dev/main.tf b/fast/stages/03-project-factory/dev/main.tf index 802bff9dba..120b835908 100644 --- a/fast/stages/03-project-factory/dev/main.tf +++ b/fast/stages/03-project-factory/dev/main.tf @@ -50,7 +50,7 @@ module "projects" { prefix = var.prefix service_accounts = try(each.value.service_accounts, {}) services = try(each.value.services, []) - service_identities_iam = try(each.value.services_iam, {}) + service_identities_iam = try(each.value.service_identities_iam, {}) vpc = try(each.value.vpc, null) }