forked from Azure/terraform-azurerm-caf-enterprise-scale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocals.management.tf
79 lines (70 loc) · 2.58 KB
/
locals.management.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
# The following locals are used to extract the Resource Group
# configuration from the solution module outputs.
locals {
es_management_resource_groups = module.management_resources.configuration.azurerm_resource_group
}
# The following locals are used to build the map of Resource
# Groups to deploy.
locals {
azurerm_resource_group_management = {
for resource in local.es_management_resource_groups :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to extract the Log Analytics
# configuration from the solution module outputs.
locals {
es_management_log_analytics_workspaces = module.management_resources.configuration.azurerm_log_analytics_workspace
}
# The following locals are used to build the map of Log
# Analytics workspaces to deploy.
locals {
azurerm_log_analytics_workspace_management = {
for resource in local.es_management_log_analytics_workspaces :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to extract the Log Analytics
# Solutions configuration from the solution module outputs.
locals {
es_management_log_analytics_solution = module.management_resources.configuration.azurerm_log_analytics_solution
}
# The following locals are used to build the map of Log
# Analytics workspaces to deploy.
locals {
azurerm_log_analytics_solution_management = {
for resource in local.es_management_log_analytics_solution :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to extract the Automation
# Account configuration from the solution module outputs.
locals {
es_management_automation_account = module.management_resources.configuration.azurerm_automation_account
}
# The following locals are used to build the map of Log
# Analytics workspaces to deploy.
locals {
azurerm_automation_account_management = {
for resource in local.es_management_automation_account :
resource.resource_id => resource
if resource.managed_by_module
}
}
# The following locals are used to extract the Log Analytics
# Linked Service configuration from the solution module outputs.
locals {
es_management_log_analytics_linked_service = module.management_resources.configuration.azurerm_log_analytics_linked_service
}
# The following locals are used to build the map of Log
# Analytics workspaces to deploy.
locals {
azurerm_log_analytics_linked_service_management = {
for resource in local.es_management_log_analytics_linked_service :
resource.resource_id => resource
if resource.managed_by_module
}
}