From e7b808e5697fc81ab7b10d3548c3f2c9407d09cb Mon Sep 17 00:00:00 2001 From: Fede Barcelona Date: Tue, 29 Aug 2023 16:44:56 +0200 Subject: [PATCH] fix: add missing tags in resource (#93) * fix: add missing tags in resource * fix: use enabled_log, since log is deprecated --- examples/single-subscription/main.tf | 1 + modules/infrastructure/eventhub/main.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/single-subscription/main.tf b/examples/single-subscription/main.tf index 8c8c18b..1621e45 100644 --- a/examples/single-subscription/main.tf +++ b/examples/single-subscription/main.tf @@ -8,4 +8,5 @@ module "infrastructure_resource_group" { location = var.location name = var.name resource_group_name = var.resource_group_name + tags = var.tags } diff --git a/modules/infrastructure/eventhub/main.tf b/modules/infrastructure/eventhub/main.tf index 5475c6c..c26e2d0 100644 --- a/modules/infrastructure/eventhub/main.tf +++ b/modules/infrastructure/eventhub/main.tf @@ -61,7 +61,7 @@ resource "azurerm_monitor_diagnostic_setting" "diagnostic_setting" { ignore_changes = [log, metric] } - dynamic "log" { + dynamic "enabled_log" { for_each = var.logs content { category = log.value