Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data block in modules\gcve-private-cloud\main.tf will throw error when create_vmware_engine_network is true / new network creations #70

Open
jamesgitrdone opened this issue Feb 1, 2024 · 0 comments

Comments

@jamesgitrdone
Copy link

Using modules\gcve-private-cloud\main.tf for our new private cloud/VEN deployment resulting in the following error:


│ Error: projects/redactedproject/locations/us-central1/vmwareEngineNetworks/redactednetwork not found

│ with module.gcve-private-cloud.data.google_vmwareengine_network.existing_vmware_engine_network,
│ on .terraform/modules/gcve-private-cloud/modules/gcve-private-cloud/main.tf line 17, in data "google_vmwareengine_network" "existing_vmware_engine_network":
│ 17: data "google_vmwareengine_network" "existing_vmware_engine_network" {

Error: Failed to perform terraform plan. Unexpected exit code: 1

We worked around this by referencing the module locally and changing modules\gcve-private-cloud\main.tf data block to have a depends_on:

data "google_vmwareengine_network" "existing_vmware_engine_network" {
provider = google-beta
project = var.project
name = var.vmware_engine_network_name
location = var.vmware_engine_network_location
depends_on = [ google_vmwareengine_network.vmware_engine_network ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant