Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11366

Cloud composer - Data sources with GCP

$
0
0

Hello, I hope you are all OK :slight_smile:
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? :slightly_smiling_face:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 11366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>