Hey team I’m having trouble finding in the documentation on how to add terraform variables in a JSON file,
I need inject this variable in this JSON,
locals{
mystring = "Test"
}
resource "grafana_dashboard" "metrics" {
config_json = file("EC2.json")
}
In this JSON of this shape but not it works,
"datasource": {
"type": "CloudWatch",
"uid": "${local.mystring}"
}
I did try with var and locals