terraform-provider-grafana icon indicating copy to clipboard operation
terraform-provider-grafana copied to clipboard

grafana_report error 500 when running terraform apply

Open kaiyuanlim opened this issue 3 years ago • 0 comments

Terraform Version

  • Terraform: 1.1.4
  • Terraform Grafana Provider: ...
  • Grafana: 1.24.0

Affected Resource(s)

  • grafana_report

Terraform Configuration Files

resource "grafana_report" "resource_consumption_report" {
  name              = "Resource Consumption Report"
  dashboard_id      = data.grafana_dashboard.resource_consumption.dashboard_id
  recipients        = var.recipients
  include_table_csv = true
  message           = "Here is the resource consumption report for ${var.environment}"
  schedule {
    frequency = "daily"
  }
  time_range {
    from = "now-1d"
    to   = "now"
  }
}

Expected Behavior

Terraform apply should work correctly

Actual Behavior

  • Terraform apply results in error 500
│ Error: status: 500, body: {"message":"body json marshal","traceID":"00000000000000000000000000000000"}
│ 
│   with grafana_report.resource_consumption_report,
│   on reports.tf line 1, in resource "grafana_report" "resource_consumption_report":
│    1: resource "grafana_report" "resource_consumption_report" 

Steps to Reproduce

  1. Setup grafana with persistence using postgres.
  2. Run terraform apply

kaiyuanlim avatar Jul 05 '22 11:07 kaiyuanlim