You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dashboard should not reflect changes after the first successful terraform apply
Actual Behavior
The dashboard reflects changes to the uid any time terraform plan is run.
For example (ignoring the whole output of the dashboard file):
(
{
timezone = ""
title = "test"
~ uid = "QiQNwyCik" -> "test"
}
)
dashboard_id = 27
folder = 23
id = "test"
slug = "test"
}
Plan: 0 to add, 1 to change, 0 to destroy.
In this case, because uidwas set automatically by a version prior to 1.7 we attempt to overwrite the new name, "test", in the updated plan. Even though this plan can be successfully run, it doesn't actually update the uid property on the dashboard.
Steps to Reproduce
Set your grafana provider version to 1.7
Create a new dashboard with JSON configuration input
Upgrade your grafana provider version to 1.8
Add the static uid field to your dashboard JSON.
Run terraform plan and terraform apply
Run terraform plan again and notice changes have been detected.
Important Factoids
This happens with Grafana v5.4.3. I haven't tested newer versions at the moment.
References
I think this PR #136 should probably have detected previous UID state rather than always accepting what's in the dashboard config.
The text was updated successfully, but these errors were encountered:
Terraform Version
Using a
dashboard.json
file like this:Expected Behavior
The dashboard should not reflect changes after the first successful
terraform apply
Actual Behavior
The dashboard reflects changes to the
uid
any timeterraform plan
is run.For example (ignoring the whole output of the dashboard file):
In this case, because
uid
was set automatically by a version prior to 1.7 we attempt to overwrite the new name, "test", in the updated plan. Even though this plan can be successfully run, it doesn't actually update theuid
property on the dashboard.Steps to Reproduce
terraform plan
andterraform apply
terraform plan
again and notice changes have been detected.Important Factoids
This happens with Grafana v5.4.3. I haven't tested newer versions at the moment.
References
I think this PR #136 should probably have detected previous UID state rather than always accepting what's in the dashboard config.
The text was updated successfully, but these errors were encountered: