grafana_organization (Resource)

This resource represents an instance-scoped resource and uses Grafana's admin APIs. It does not work with API tokens or service accounts which are org-scoped. You must use basic auth.

Example Usage

resource "grafana_organization" "test" {
  name         = "Test Organization"
  admin_user   = "admin"
  create_users = true
  admins = [
    "admin@example.com"
  ]
  editors = [
    "editor-01@example.com",
    "editor-02@example.com"
  ]
  viewers = [
    "viewer-01@example.com",
    "viewer-02@example.com"
  ]
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

terraform import grafana_organization.name "{{ id }}"