-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocals.tf
80 lines (75 loc) · 2.2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
locals {
location = "northeurope"
naming = {
dcr_1 = "SEY-TERRAFORM-NE-DCR01"
dcr_2 = "SEY-TERRAFORM-NE-DCR02"
}
dcr = [
{
name = local.naming.dcr_1
resource_group_name = azurerm_resource_group.rg.name
location = local.location
data_collection_endpoint_id = azurerm_monitor_data_collection_endpoint.example.id
identity = {
type = "SystemAssigned"
}
destinations = {
log_analytics = [
{
workspace_resource_id = azurerm_log_analytics_workspace.la.id
name = azurerm_log_analytics_workspace.la.name
}
]
storage_blob = [
{
storage_account_id = azurerm_storage_account.sa.id
container_name = azurerm_storage_container.container.name
name = "test-destination-storage"
}
]
azure_monitor_metrics = {
name = "test-destination-metrics"
}
}
data_flow = [
{
streams = ["Microsoft-InsightsMetrics", "Microsoft-Syslog", "Microsoft-Perf"]
destinations = [azurerm_log_analytics_workspace.la.name]
}
]
tags = {}
monitoring = [
{
diag_name = "Monitoring"
log_analytics_workspace_id = azurerm_log_analytics_workspace.la.id
categories = {
log_errors = false
}
}
]
},
{
name = local.naming.dcr_2
resource_group_name = azurerm_resource_group.rg.name
location = local.location
destinations = {
log_analytics = [
{
workspace_resource_id = azurerm_log_analytics_workspace.la.id
name = azurerm_log_analytics_workspace.la.name
}
]
azure_monitor_metrics = {
name = "test-destination-metrics"
}
}
data_flow = [
{
streams = ["Microsoft-InsightsMetrics", "Microsoft-Syslog", "Microsoft-Perf"]
destinations = [azurerm_log_analytics_workspace.la.name]
}
]
tags = {}
}
]
}