STACKITCIN-299 Hotfix add lifecycle

This commit is contained in:
Stanislav_Kopp 2025-08-19 15:50:46 +02:00
parent 77a36b4bb0
commit 4fbc356cbb

View file

@ -20,6 +20,13 @@ resource "grafana_data_source" "this" {
# Encodes initial, non-dependent JSON data. # Encodes initial, non-dependent JSON data.
# Configurations that depend on other datasource UIDs will be handled separately. # 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 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. # Step 2: Apply Loki-specific 'derivedFields' configuration.