Skip to content

Commit

Permalink
fix: Enable configuring shared_vpc resources at folder level (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
xingao267 authored Mar 17, 2021
1 parent 45d133e commit d3fa559
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/core_project_factory/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d3fa559

Please sign in to comment.