Hello, I hope you are all OK
I have some issue with terraform and GCP.
The goal is to create a Cloud Composer instance on project A and to retrieve the network resources (network & subnetwork) from project B.
I used a data-sources.tf file, but it doesn’t seem to be working. My data-sources.tf file specifies the network resources from project B, but in my composer.tf file, I indicate that it should create the Cloud Composer instance in project A.
In my tf-plan-review, I have:
network = “projects/project A/global/networks/network project B”
subnetwork = “projects/project A/regions/europe-xxx/subnetworks/subnetwork project B”
Logically, based on this, it looks for the information in project A and not in project B.
Do you have any ideas?
1 post - 1 participant