terraform-google-network icon indicating copy to clipboard operation
terraform-google-network copied to clipboard

Submodule peering example

Open philipwigg opened this issue 4 years ago • 4 comments

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?

philipwigg avatar Jan 03 '21 16:01 philipwigg

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

bharathkkb avatar Jan 04 '21 21:01 bharathkkb

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 avatar Jan 05 '21 14:01 philipwigg

@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.

bharathkkb avatar Jan 05 '21 21:01 bharathkkb

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

github-actions[bot] avatar Mar 06 '21 23:03 github-actions[bot]