Skip to content

Commit 0bff02c

Browse files
authored
fix: include the APIs with identities created in the shared VPC config #946 (#947)
1 parent 12c63ea commit 0bff02c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module "shared_vpc_access" {
8282
enable_shared_vpc_service_project = var.svpc_host_project_id != "" ? true : false
8383
host_project_id = var.svpc_host_project_id
8484
service_project_id = module.project-factory.project_id
85-
active_apis = var.activate_apis
85+
active_apis = toset(concat(var.activate_apis, [for i in var.activate_api_identities : i.api]))
8686
shared_vpc_subnets = var.shared_vpc_subnets
8787
service_project_number = module.project-factory.project_number
8888
lookup_project_numbers = false

modules/svpc_service_project/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module "shared_vpc_access" {
7070
host_project_id = var.shared_vpc
7171
enable_shared_vpc_service_project = true
7272
service_project_id = module.project-factory.project_id
73-
active_apis = var.activate_apis
73+
active_apis = toset(concat(var.activate_apis, [for i in var.activate_api_identities : i.api]))
7474
shared_vpc_subnets = var.shared_vpc_subnets
7575
service_project_number = module.project-factory.project_number
7676
lookup_project_numbers = false

0 commit comments

Comments
 (0)