terraform-google-network
terraform-google-network copied to clipboard
Submodule peering example
This Simple VPC Network Peering example claims that This example creates a VPC Network peering between two VPCs..
To me, it seems to create three VPCs and create a A->B and A->C type peering setup.
Which should it be?
Hi @philipwigg
It creates local-network <--> peer-network-1 and local-network <--> peer-network-2. For any two VPCs, A and B, the module network-peering creates A<-->B
Thanks for your response. My point is, the example does not in fact create "a VPC peering between two VPCs" but rather it's 2 VPC peerings and three VPCs as you've referenced in your reply.
@philipwigg yes happy to review PR to flesh out the docs. Also technically its 4 VPC peerings, each instance of the module creates 2 peerings A-to-B and B-to-A.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days