Skip to content

cktf/terraform-grafana-organization

Repository files navigation

Terraform Grafana Organization

pipeline release license

Organization is a Terraform module useful for creating multiple teams, folders, dashboards, and datasources in Grafana

Installation

Add the required configurations to your terraform config file and install module using command bellow:

terraform init

Usage

module "grafana" {
  source = "cktf/organization/grafana"

  name   = "MyOrg"
  admin  = "[email protected]"
  admins = ["admin@localhost"]

  teams = {
    backend = {
      name  = "Backend"
      email = "[email protected]"
    }
    frontend = {
      name  = "Frontend"
      email = "[email protected]"
    }
  }

  folders = {
    backend = {
      title = "Backend"
      permissions = {
        backend = "team:backend:Admin"
      }
    }
    frontend = {
      title = "Frontend"
      permissions = {
        frontend = "team:frontend:Admin"
      }
    }
  }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is licensed under the MIT.
Copyright (c) KoLiBer ([email protected])