From d3fa559e2eab9f53bb0d4eff876ba1a7bbe8fe2f Mon Sep 17 00:00:00 2001 From: Xin Gao Date: Wed, 17 Mar 2021 12:11:14 -0400 Subject: [PATCH] fix: Enable configuring shared_vpc resources at folder level (#560) --- modules/core_project_factory/main.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core_project_factory/main.tf b/modules/core_project_factory/main.tf index 254a51f2..198eae44 100644 --- a/modules/core_project_factory/main.tf +++ b/modules/core_project_factory/main.tf @@ -101,17 +101,17 @@ module "project_services" { Shared VPC configuration *****************************************/ resource "google_compute_shared_vpc_service_project" "shared_vpc_attachment" { - count = var.enable_shared_vpc_service_project ? 1 : 0 + provider = google-beta + count = var.enable_shared_vpc_service_project ? 1 : 0 host_project = var.shared_vpc service_project = google_project.main.project_id - - depends_on = [ - module.project_services, - ] + depends_on = [module.project_services] } resource "google_compute_shared_vpc_host_project" "shared_vpc_host" { + provider = google-beta + count = var.enable_shared_vpc_host_project ? 1 : 0 project = google_project.main.project_id depends_on = [module.project_services]