Skip to content

Commit eb00254

Browse files
authored
Merge pull request #3115 from ankitkinra/hotfix-multivpc-subnetwork-link
Revert PR#3046 and add more line breaks for readability
2 parents f9f9256 + 06bf17e commit eb00254

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/network/multivpc/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ locals {
2424
maximum_subnetworks = pow(2, local.subnetwork_new_bits)
2525
additional_networks = [
2626
for vpc in module.vpcs :
27-
merge(var.network_interface_defaults, { network = vpc.network_name, subnetwork = vpc.subnetwork_self_link })
27+
merge(var.network_interface_defaults, {
28+
network = vpc.network_name
29+
subnetwork = vpc.subnetwork_name
30+
subnetwork_project = var.project_id
31+
})
2832
]
2933
}
3034

0 commit comments

Comments
 (0)