Skip to content

Commit

Permalink
using location global for network
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Prete committed Dec 21, 2023
1 parent 7bdb478 commit 1265e19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions modules/gcve-private-cloud/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/gcve_private_cloud/examples/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/gcve_private_cloud/examples/custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1265e19

Please sign in to comment.