Skip to content

Commit 419f35b

Browse files
authored
Update organizational.tf (#74)
1 parent f5e951f commit 419f35b

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

modules/integrations/event-hub/organizational.tf

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,10 @@ resource "azurerm_monitor_diagnostic_setting" "sysdig_org_diagnostic_setting" {
3737
eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule.sysdig_rule.id
3838
eventhub_name = azurerm_eventhub.sysdig_event_hub.name
3939

40-
enabled_log {
41-
category = "Administrative"
42-
}
43-
44-
enabled_log {
45-
category = "Security"
46-
}
47-
48-
enabled_log {
49-
category = "Policy"
40+
dynamic "enabled_log" {
41+
for_each = var.enabled_platform_logs
42+
content {
43+
category = enabled_log.value
44+
}
5045
}
5146
}

0 commit comments

Comments
 (0)