Organization is a Terraform module useful for creating multiple teams, folders, dashboards, and datasources in Grafana
Add the required configurations to your terraform config file and install module using command bellow:
terraform init
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"
}
}
}
}
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.
This project is licensed under the MIT.
Copyright (c) KoLiBer ([email protected])