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" #131

Closed darrenmillin closed 1 year 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:

data "google_compute_image" "vmseries" on line 11 data "google_compute_subnetwork" "this" on line 18 resource "google_compute_address" "private" on line 24 resource "google_compute_address" "public" on line 30

michalbil commented 1 year ago

Hello @darrenmillin!

Thank you for your report. Can you please provide more insight into your use case, including how is the module called and some info about relation to other GCP project(s)?