PaloAltoNetworks / terraform-google-vmseries-modules

Terraform Reusable Modules for VM-Series on Google Cloud Platform (GCP)
https://registry.terraform.io/modules/PaloAltoNetworks/vmseries-modules/google
MIT License
16 stars 27 forks source link

The vmseries module fails with "Cross-project references for this resource are not allowed" #127

Closed darrenmillin closed 2 years ago

darrenmillin commented 2 years ago

When deploying the vmseries module through a Jenkins pipeline, the deployment fails with "Cross-project references for this resource are not allowed". This was resolved by adding the project parameter to the following resources in modules/vmseries/main.tf:

  1. data "google_compute_image" "vmseries" on line 11
  2. data "google_compute_subnetwork" "this" on line 18
  3. resource "google_compute_address" "private" on line 24
  4. resource "google_compute_address" "public" on line 30
darrenmillin commented 2 years ago

Deleting as not correctly labelled