Skip to content

Instantly share code, notes, and snippets.

@jnahelou
Created July 27, 2021 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnahelou/86b8543fedf89bf0c77a338b01337124 to your computer and use it in GitHub Desktop.
Save jnahelou/86b8543fedf89bf0c77a338b01337124 to your computer and use it in GitHub Desktop.
code sample - grafana medium story
terraform {
required_providers {
grafana = {
source = "grafana/grafana"
}
}
}
resource "grafana_dashboard" "test" {
config_json = <<EOD
{
"title": "Terraform Acceptance Test ${substr(uuid(), 0, 6)}"
}
EOD
lifecycle {
ignore_changes = [config_json]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment