forked from Azure/terraform-azurerm-caf-enterprise-scale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
locals.virtual_wan.tf
90 lines (82 loc) · 2.69 KB
/
locals.virtual_wan.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# The following locals are used to build the map of Resource
# Groups to deploy.
locals {
azurerm_resource_group_virtual_wan = {
for resource in module.connectivity_resources.configuration.azurerm_resource_group :
resource.resource_id => resource
if resource.managed_by_module &&
resource.scope == "virtual_wan"
}
}
# The following locals are used to build the map of Azure
# Virtual WANs to deploy.
locals {
azurerm_virtual_wan_virtual_wan = {
for resource in module.connectivity_resources.configuration.azurerm_virtual_wan :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to build the map of Azure
# Virtual Hubs to deploy.
locals {
azurerm_virtual_hub_virtual_wan = {
for resource in module.connectivity_resources.configuration.azurerm_virtual_hub :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to build the map of Azure
# Expressroute Gateways to deploy.
locals {
azurerm_express_route_gateway_virtual_wan = {
for resource in module.connectivity_resources.configuration.azurerm_express_route_gateway :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to build the map of Azure
# VPN Gateways to deploy.
locals {
azurerm_vpn_gateway_virtual_wan = {
for resource in module.connectivity_resources.configuration.azurerm_vpn_gateway :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to build the map of Azure
# Firewall Policies to deploy.
locals {
azurerm_firewall_policy_virtual_wan = {
for resource in module.connectivity_resources.configuration.azurerm_firewall_policy :
resource.resource_id => resource
if resource.managed_by_module &&
resource.scope == "virtual_wan"
}
}
# The following locals are used to build the map of Azure
# Firewalls to deploy.
locals {
azurerm_firewall_virtual_wan = {
for resource in module.connectivity_resources.configuration.azurerm_firewall :
resource.resource_id => resource
if resource.managed_by_module &&
resource.scope == "virtual_wan"
}
}
# The following locals are used to build the map of Virtual
# Network Peerings to deploy.
locals {
azurerm_virtual_hub_connection = {
for resource in module.connectivity_resources.configuration.azurerm_virtual_hub_connection :
resource.resource_id => resource
if resource.managed_by_module
}
}
locals {
azurerm_virtual_hub_routing_intent = {
for resource in module.connectivity_resources.configuration.azurerm_virtual_hub_routing_intent :
resource.resource_id => resource
if resource.managed_by_module
}
}