Update and redeploy Terraform configuration

Making configuration changes through Terraform demonstrates the power of infrastructure as code. You can review, test, and apply changes with confidence, knowing every modification is tracked and reproducible.

To update and redeploy your configuration, complete the following steps:

  1. Open the file alerts_billing.tf in your text editor.

  2. Search for is_paused = true.

  3. Change at least one alert to is_paused = false:

    hcl
    resource "grafana_rule_group" "billing_alerts" {
      name             = "Billing Alerts"
      folder_uid       = grafana_folder.it.uid
      interval_seconds = 300
    
      rule {
        name      = "High Cost Alert"
        condition = "A"
        is_paused = false  // Changed from true
    
        // ...existing configuration...
      }
    }
  4. Review the changes Terraform will apply:

    sh
    terraform plan
  5. Apply the configuration changes:

    sh
    terraform apply
  6. When prompted, type yes to confirm.

  7. Sign in to Grafana Cloud as an administrator.

  8. Navigate to Alerting > Alert rules.

  9. Open the Billing Alerts folder.

The previously paused alerts are now active and evaluating.

This workflow demonstrates the value of infrastructure as code. You can test alerts in development by pausing them, deploy to production, and enable them when ready—all through version-controlled configuration files.

In the next milestone, you’ll reach your destination and explore next steps.


page 11 of 12