Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/terraform/grafana-resources.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/terraform/grafana-resources/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
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.
- Create and manage dashboards using Terraform and GitHub Actions
Learn how to manage multiple dashboards stored as JSON source code using Terraform and GitHub Actions. - Manage saved queries using Terraform
Learn how to manage saved queries using the Grafana Terraform provider - Configure the Grafana provider for App Platform resources in Grafana Cloud
Set the stack ID in the Grafana Terraform provider to manage App Platform resources, such as Service Center services, alert rules, and dashboards, in a Grafana Cloud stack. - Install plugins in Grafana Cloud using Terraform
Learn how to install plugins in Grafana Cloud using Terraform
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.
Was this page helpful?
Related resources from Grafana Labs


