---
title: "Run terraform plan | Grafana Labs"
description: "Preview the changes Terraform will make before deploying anything."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Run terraform plan

Before deploying, always run `terraform plan` to preview what Terraform will do. This shows you exactly which resources will be created, updated, or destroyed, without making any changes to your Grafana instance.

To preview your deployment, complete the following steps:

1. Run `terraform plan` from your `terraform` directory:
   
   Bash ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```bash
   terraform plan
   ```
2. Review the output. You should see something like:
   
   ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```none
   Terraform will perform the following actions:
   
     # grafana_folder.dashboards_as_code will be created
     + resource "grafana_folder" "dashboards_as_code" {
         + id    = (known after apply)
         + title = "Dashboards as Code"
         + uid   = (known after apply)
       }
   
     # grafana_dashboard.my_dashboard will be created
     + resource "grafana_dashboard" "my_dashboard" {
         + config_json = jsonencode({...})
         + folder      = (known after apply)
         + id          = (known after apply)
       }
   
   Plan: 2 to add, 0 to change, 0 to destroy.
   ```
3. Confirm the plan shows:
   
   - **2 to add** (the folder and the dashboard)
   - **0 to change** (nothing existing is being modified)
   - **0 to destroy** (nothing is being deleted)

## What to look for

Expand table

| Indicator    | Meaning                           |
|--------------|-----------------------------------|
| `+` (green)  | Resource will be created          |
| `~` (yellow) | Resource will be updated in place |
| `-` (red)    | Resource will be destroyed        |

If the plan looks correct, you’re ready to apply. If something looks wrong (unexpected destroys or changes), review your configuration before proceeding.

In the next milestone, you apply the plan to deploy the dashboard to Grafana and verify it’s working.
