Grafana Cloud Enterprise Open source

Use Terraform to work with Grafana resources

Use these guides to manage resources inside a Grafana instance or Grafana Cloud stack with Terraform. Some resources are only available in Grafana Cloud or Grafana Enterprise. Each guide lists its requirements.

Guides in other sections

The following Grafana resources document Terraform in their own sections:

  • Alerting: Use Terraform to provision alerting resources — Provision alert rules, contact points, notification templates, mute timings, and notification policy trees, and optionally allow editing them in the Grafana UI.
  • Git Sync: Set up Git Sync with Terraform — Create the connection and repository resources that synchronize a Git repository with Grafana.
  • Role-based access control: Provisioning RBAC with Terraform — Set basic roles for users and service accounts, create custom roles, and assign fixed or custom roles to users, teams, and service accounts.

For the full list across Grafana and Grafana Cloud, refer to the Terraform guides by area.