-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.peering.tf
22 lines (20 loc) · 1.12 KB
/
main.peering.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module "peering" {
source = "./modules/peering"
for_each = var.peerings
virtual_network = { resource_id = azapi_resource.vnet.id }
remote_virtual_network = { resource_id = each.value.remote_virtual_network_resource_id }
name = each.value.name
allow_virtual_network_access = each.value.allow_virtual_network_access
allow_forwarded_traffic = each.value.allow_forwarded_traffic
allow_gateway_transit = each.value.allow_gateway_transit
use_remote_gateways = each.value.use_remote_gateways
create_reverse_peering = each.value.create_reverse_peering
reverse_name = each.value.reverse_name
reverse_allow_virtual_network_access = each.value.reverse_allow_virtual_network_access
reverse_allow_forwarded_traffic = each.value.reverse_allow_forwarded_traffic
reverse_allow_gateway_transit = each.value.reverse_allow_gateway_transit
reverse_use_remote_gateways = each.value.reverse_use_remote_gateways
depends_on = [
azapi_resource.vnet
]
}