From 4fbc356cbb7409060db9dc3f73083a00d9eac2c8 Mon Sep 17 00:00:00 2001 From: Stanislav Kopp Date: Tue, 19 Aug 2025 15:50:46 +0200 Subject: [PATCH] STACKITCIN-299 Hotfix add lifecycle --- grafana/datasource/datasource.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/grafana/datasource/datasource.tf b/grafana/datasource/datasource.tf index cb953e1..a2eec52 100644 --- a/grafana/datasource/datasource.tf +++ b/grafana/datasource/datasource.tf @@ -20,6 +20,13 @@ resource "grafana_data_source" "this" { # Encodes initial, non-dependent JSON data. # Configurations that depend on other datasource UIDs will be handled separately. json_data_encoded = each.value.json_data != null ? jsonencode(each.value.json_data) : null + + # ignore changes made by the _config resource + lifecycle { + ignore_changes = [ + json_data_encoded, + ] + } } # Step 2: Apply Loki-specific 'derivedFields' configuration.