From 3d5ee27a5d56280f38cc1a4e61a887bfdeb013ac Mon Sep 17 00:00:00 2001 From: Marco Mari <130982006+mamari90@users.noreply.github.com> Date: Wed, 15 Jan 2025 18:06:57 +0100 Subject: [PATCH] feat: Added law ignore sku for use with cluster (#2721) added law ignore sku for use with cluster --- src/core-itn/70_monitoring.tf | 6 ++++++ src/next-core/02_monitor.tf | 6 ++++++ src/synthetic-monitoring/01_analytics_workspace.tf | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/src/core-itn/70_monitoring.tf b/src/core-itn/70_monitoring.tf index bd9e5cf3d3..6b6c9c70b3 100644 --- a/src/core-itn/70_monitoring.tf +++ b/src/core-itn/70_monitoring.tf @@ -16,6 +16,12 @@ resource "azurerm_log_analytics_workspace" "log_analytics_workspace" { internet_query_enabled = var.law_internet_query_enabled tags = var.tags + + lifecycle { + ignore_changes = [ + sku + ] + } } # Application insights diff --git a/src/next-core/02_monitor.tf b/src/next-core/02_monitor.tf index 30b57003aa..dd0d2985f2 100644 --- a/src/next-core/02_monitor.tf +++ b/src/next-core/02_monitor.tf @@ -16,6 +16,12 @@ resource "azurerm_log_analytics_workspace" "log_analytics_workspace" { allow_resource_only_permissions = var.env_short != "p" tags = var.tags + + lifecycle { + ignore_changes = [ + sku + ] + } } # Application insights diff --git a/src/synthetic-monitoring/01_analytics_workspace.tf b/src/synthetic-monitoring/01_analytics_workspace.tf index b79bb5bb9a..d0091eb55f 100644 --- a/src/synthetic-monitoring/01_analytics_workspace.tf +++ b/src/synthetic-monitoring/01_analytics_workspace.tf @@ -14,6 +14,12 @@ resource "azurerm_log_analytics_workspace" "log_analytics_workspace" { reservation_capacity_in_gb_per_day = var.env_short == "p" ? 100 : null tags = var.tags + + lifecycle { + ignore_changes = [ + sku + ] + } } # Application insights