-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocals.tf
38 lines (35 loc) · 956 Bytes
/
locals.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
locals {
# General locals
prefix = "${lower(var.prefix)}-${var.environment}"
resource_providers_to_register = [
"Microsoft.Authorization",
"Microsoft.Insights",
"Microsoft.KeyVault",
"Microsoft.Network",
"Microsoft.Resources",
"Microsoft.Storage",
"Microsoft.Web",
]
# Resource locals
virtual_network = {
resource_group_name = split("/", var.vnet_id)[4]
name = split("/", var.vnet_id)[8]
}
network_security_group = {
resource_group_name = split("/", var.nsg_id)[4]
name = split("/", var.nsg_id)[8]
}
route_table = {
resource_group_name = split("/", var.route_table_id)[4]
name = split("/", var.route_table_id)[8]
}
# Logging locals
diagnostics_configurations = [
{
log_analytics_workspace_id = var.log_analytics_workspace_id
storage_account_id = ""
}
]
# CMK locals
customer_managed_key = null
}