-
Notifications
You must be signed in to change notification settings - Fork 17
/
r-logs.tf
31 lines (23 loc) · 942 Bytes
/
r-logs.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
module "diagnostics" {
source = "claranet/diagnostic-settings/azurerm"
version = "~> 8.0.0"
resource_id = azurerm_storage_account.main.id
logs_destinations_ids = var.logs_destinations_ids
log_categories = var.logs_categories
metric_categories = var.logs_metrics_categories
custom_name = var.diagnostic_settings_custom_name
name_prefix = var.name_prefix
name_suffix = var.name_suffix
}
module "diagnostics_type" {
for_each = toset(["blob", "file", "table", "queue"])
source = "claranet/diagnostic-settings/azurerm"
version = "~> 8.0.0"
resource_id = format("%s/%sServices/default/", azurerm_storage_account.main.id, each.key)
logs_destinations_ids = var.logs_destinations_ids
log_categories = var.logs_categories
metric_categories = var.logs_metrics_categories
custom_name = var.diagnostic_settings_custom_name
name_prefix = var.name_prefix
name_suffix = var.name_suffix
}