Skip to content

Grafana Dashboard doesn't support folder_id and org_id #31

@fotto1

Description

@fotto1

Terraform Version

Terraform v0.11.2

  • provider.grafana v1.0.2

Affected Resource(s)

  • grafana_dashboard

Terraform Configuration Files

provider "grafana" {
}

data "template_file" "helloworld" {


  template = "${file("${path.module}/helloworld.json")}"

  vars {
    dashboard_name = "hello_world"
  }

}

resource "grafana_dashboard" "helloworld" {
  config_json = "${data.template_file.helloworld.rendered}"
  org_id = 1
  folder_id = axS1XHVmk
}

The code is working and the grafana dashboard will be created. But in wrong Grafana Organization and Folder because I'm not able to set following parameters:

  • org_id - ID of the Organisation in Grafana
  • folder_id - ID of Folder in Grafana Organization

I use a grafana version 5.2.1 (2040f61)

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. create a provider with Grafana and credentials
  2. terraform apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions