---
title: "Use Terraform to work with Grafana resources | Grafana Cloud documentation"
description: "Manage dashboards, saved queries, App Platform resources, and plugins with the Grafana Terraform provider."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/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](https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/terraform/grafana-resources/dashboards-github-action/)  
  Learn how to manage multiple dashboards stored as JSON source code using Terraform and GitHub Actions.
- [Manage saved queries using Terraform](https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/terraform/grafana-resources/manage-saved-queries/)  
  Learn how to manage saved queries using the Grafana Terraform provider
- [Configure the Grafana provider for App Platform resources in Grafana Cloud](https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/terraform/grafana-resources/terraform-app-platform-resources/)  
  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](https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/terraform/grafana-resources/terraform-plugins/)  
  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](https://grafana.com/docs/grafana-cloud/observe-and-act/alert-and-measure-reliability/alerting/set-up/provision-alerting-resources/terraform-provisioning/) — 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](https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/git-sync/git-sync-setup/set-up-terraform/) — Create the connection and repository resources that synchronize a Git repository with Grafana.
- **Role-based access control:** [Provisioning RBAC with Terraform](https://grafana.com/docs/grafana-cloud/platform/security-and-account-management/security-and-access/authentication-and-permissions/access-control/rbac-terraform-provisioning/) — 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](https://grafana.com/docs/grafana-cloud/learn-and-build/as-code/terraform/#terraform-guides-by-area).
