Skip to content

Commit

Permalink
fix: Replace deprecated with
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraemer-sysdig committed Sep 5, 2023
1 parent 04f2ce6 commit 0a397af
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/infrastructure/eventhub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resource "azurerm_monitor_diagnostic_setting" "diagnostic_setting" {
dynamic "enabled_log" {
for_each = var.logs
content {
category = log.value
category = enabled_log.value

retention_policy {
enabled = false
Expand All @@ -79,11 +79,10 @@ resource "azurerm_monitor_aad_diagnostic_setting" "active_directory_diagnostic_s
eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule.ns_auth_rule.id
eventhub_name = azurerm_eventhub.aev.name

dynamic "log" {
dynamic "enabled_log" {
for_each = var.active_directory_logs
content {
category = log.value
enabled = true
category = enabled_log.value

retention_policy {
enabled = false
Expand Down

0 comments on commit 0a397af

Please sign in to comment.