From 0bff02c2a02b78a9f78f40a8ee2e4f4823f630aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Sauv=C3=A8re?= Date: Fri, 1 Nov 2024 22:52:54 +0100 Subject: [PATCH] fix: include the APIs with identities created in the shared VPC config #946 (#947) --- main.tf | 2 +- modules/svpc_service_project/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 6f3da1da..e3bbd8aa 100644 --- a/main.tf +++ b/main.tf @@ -82,7 +82,7 @@ module "shared_vpc_access" { enable_shared_vpc_service_project = var.svpc_host_project_id != "" ? true : false host_project_id = var.svpc_host_project_id service_project_id = module.project-factory.project_id - active_apis = var.activate_apis + active_apis = toset(concat(var.activate_apis, [for i in var.activate_api_identities : i.api])) shared_vpc_subnets = var.shared_vpc_subnets service_project_number = module.project-factory.project_number lookup_project_numbers = false diff --git a/modules/svpc_service_project/main.tf b/modules/svpc_service_project/main.tf index 5181971e..63bd856f 100755 --- a/modules/svpc_service_project/main.tf +++ b/modules/svpc_service_project/main.tf @@ -70,7 +70,7 @@ module "shared_vpc_access" { host_project_id = var.shared_vpc enable_shared_vpc_service_project = true service_project_id = module.project-factory.project_id - active_apis = var.activate_apis + active_apis = toset(concat(var.activate_apis, [for i in var.activate_api_identities : i.api])) shared_vpc_subnets = var.shared_vpc_subnets service_project_number = module.project-factory.project_number lookup_project_numbers = false