diff --git a/modules/gcve-private-cloud/main.tf b/modules/gcve-private-cloud/main.tf index c062c16a88..97656ad40e 100644 --- a/modules/gcve-private-cloud/main.tf +++ b/modules/gcve-private-cloud/main.tf @@ -25,10 +25,9 @@ locals { resource "google_vmwareengine_network" "private-cloud-network" { count = var.vmw_network_create ? 1 : 0 - provider = google-beta project = var.project_id - name = "${local.region}-default" - location = local.region + name = "${var.name}-network-default" + location = "global" type = "STANDARD" description = var.vmw_network_description } @@ -38,11 +37,10 @@ data "google_vmwareengine_network" "private-cloud-network" { provider = google-beta project = var.project_id name = "${local.region}-default" - location = local.region + location = "global" } resource "google_vmwareengine_network_peering" "vmw-engine-network-peering" { - provider = google-beta for_each = var.network_peerings name = "${var.name}-${each.key}" project = var.project_id diff --git a/tests/modules/gcve_private_cloud/examples/basic.yaml b/tests/modules/gcve_private_cloud/examples/basic.yaml index 917d7b3773..2290e1e5ec 100644 --- a/tests/modules/gcve_private_cloud/examples/basic.yaml +++ b/tests/modules/gcve_private_cloud/examples/basic.yaml @@ -15,8 +15,8 @@ values: module.gcve-pc.google_vmwareengine_network.private-cloud-network[0]: description: Terraform-managed. - location: europe-west8 - name: europe-west8-default + location: global + name: gcve-pc-network-default project: gcve-test-project timeouts: null type: STANDARD diff --git a/tests/modules/gcve_private_cloud/examples/custom.yaml b/tests/modules/gcve_private_cloud/examples/custom.yaml index 8e6fb74297..a1c0f8b93a 100644 --- a/tests/modules/gcve_private_cloud/examples/custom.yaml +++ b/tests/modules/gcve_private_cloud/examples/custom.yaml @@ -15,8 +15,8 @@ values: module.gcve-pc.google_vmwareengine_network.private-cloud-network[0]: description: Terraform-managed. - location: europe-west8 - name: europe-west8-default + location: global + name: gcve-pc-network-default project: gcve-test-project timeouts: null type: STANDARD