-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lzvending.tf
36 lines (32 loc) · 1.74 KB
/
main.lzvending.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
# The landing zone module will be called once per landing_zone_*.yaml file
# in the data directory.
module "lz_vending" {
source = "Azure/lz-vending/azurerm"
version = "3.1.0" # change this to your desired version, https://www.terraform.io/language/expressions/version-constraints
for_each = local.landing_zone_data_map #
location = each.value.location
# subscription variables
subscription_alias_enabled = false # Changed from True and adding SubscriptionId
subscription_id = each.value.subscription_id # added Id because Alias_enabled false
subscription_billing_scope = "/providers/Microsoft.Billing/billingAccounts/c1302900-7ed5-49ee-beb4-5f40dd420485/enrollmentAccounts/${each.value.billing_enrollment_account}"
subscription_display_name = each.value.name
subscription_alias_name = each.value.name
subscription_workload = each.value.workload
# management group association variables
subscription_management_group_association_enabled = true
subscription_management_group_id = each.value.management_group_id
# virtual network variables
virtual_network_enabled = true
virtual_networks = {
for k, v in each.value.virtual_networks : k => merge(
v,
{
#hub_network_resource_id = local.hub_networks_by_location[each.value.location]
#hub_peering_use_remote_gateways = false
vwan_connection_enabled = true
### HACK - Mapping to Location failing last min...
vwan_hub_resource_id = "/subscriptions/660f8f6b-518b-4d71-ba96-c59beab19f3a/resourceGroups/mw-demo-connectivity/providers/Microsoft.Network/virtualHubs/mw-demo-hub-northeurope" #local.virtual_hubs_by_location[each.value.location]
}
)
}
}