Menu
Documentationbreadcrumb arrow Grafana Cloudbreadcrumb arrow What's new in Grafana Cloudbreadcrumb arrow Export a new alert rule definition in Terraform (HCL) format
Grafana Cloud
← Back to What's new
Generally AvailableAlerting
Release date: 2024-11-25

Export a new alert rule definition in Terraform (HCL) format

Create a new alert rule definition as part of a provisioned rule group and export it into Terraform (HCL) format. Copy and paste the code into your Terraform pipeline to create your new alert rule. Previously, you had to add the rule definition to the code manually. Now, you can get that code from the UI, enabling you to quickly deploy and manage alert rules as part of your infrastructure as code.

This image shows the export rule definition button on the alert rule list view.