Mutual dependence on data sources

Fishing for good ideas.

I'm trying to deploy a pair of VPN endpoints in 2 public clouds: GCP and Azure. In configuration of each, there is a dependency on public ip generated on the other side. It would be perhaps easy if i had 1 file and kept it all in one state, but for compliance reasons, I keep it as separate terraform manifests and separate states. So far I have tried various things: conditional count on existence of data source, or for_each iterating through IP addresses from the data source. Failed in both. Do you have any good ideas how to approach this problem?

submitted by /u/The_Naturalist
[link] [comments]

Read more here: https://www.reddit.com/r/Terraform/comments/lqhy1z/mutual_dependence_on_data_sources/

Content Attribution

This content was originally published by /u/The_Naturalist at Terraform, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: