-
Notifications
You must be signed in to change notification settings - Fork 0
/
locals.tf
61 lines (55 loc) · 1.69 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
locals {
location = "northeurope"
naming = {
rg = "SEY-KV-NE-RG01"
kv_1 = "SEY-TERRAFORM-NE-KV01"
kv_2 = "SEY-TERRAFORM-NE-KV02"
}
kv = [
{
name = local.naming.kv_1
location = local.location
resource_group_name = azurerm_resource_group.rg.name
sku_name = "standard"
tenant_id = data.azurerm_client_config.current.tenant_id
private_endpoint = [
{
name = "${local.naming.kv_1}-PE01"
subnet_id = azurerm_subnet.subnet.id
custom_network_interface_name = "${local.naming.kv_1}-PE01.nic"
private_service_connection = [
{
name = "${local.naming.kv_1}-PE01-connection"
is_manual_connection = false
subresource_names = ["vault"]
}
]
private_dns_zone_group = {
name = azurerm_private_dns_zone.dns.name
private_dns_zone_ids = [
azurerm_private_dns_zone.dns.id
]
}
}
]
monitoring = [
{
diag_name = "Monitoring"
log_analytics_workspace_id = azurerm_log_analytics_workspace.la.id
categories = {
azure_policy_evaluation_details = false
}
}
]
tags = {}
},
{
name = local.naming.kv_2
location = local.location
resource_group_name = azurerm_resource_group.rg.name
sku_name = "standard"
tenant_id = data.azurerm_client_config.current.tenant_id
tags = {}
}
]
}