From 738b369e6a253ac7c0da19b543e1b44fdcd9e2e0 Mon Sep 17 00:00:00 2001 From: Automatic Update Date: Thu, 21 Nov 2024 14:19:56 +0100 Subject: [PATCH] Ignore data_persistence_authentication_method (not used) --- .../subscriptions/modules/redis_cache/main.tf | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/terraform/subscriptions/modules/redis_cache/main.tf b/terraform/subscriptions/modules/redis_cache/main.tf index 5e92c4cc..6050ba23 100644 --- a/terraform/subscriptions/modules/redis_cache/main.tf +++ b/terraform/subscriptions/modules/redis_cache/main.tf @@ -8,12 +8,15 @@ resource "azurerm_redis_cache" "this" { sku_name = var.sku_name minimum_tls_version = "1.2" public_network_access_enabled = false + lifecycle { + ignore_changes = [ + redis_configuration[0].data_persistence_authentication_method + ] + } redis_configuration { - maxmemory_reserved = 125 - maxmemory_delta = 125 - maxfragmentationmemory_reserved = 125 - data_persistence_authentication_method = "SAS" - - maxmemory_policy = "volatile-lru" + maxmemory_reserved = 125 + maxmemory_delta = 125 + maxfragmentationmemory_reserved = 125 + maxmemory_policy = "volatile-lru" } } \ No newline at end of file