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.