Export Terraform configuration
export_terraformExport existing monitors, destinations, routes, alert templates, and status pages as Terraform HCL with import blocks to adopt them into infrastructure-as-code without recreating.
Instructions
Requires the read scope or higher. Exports existing monitors, destinations, routes, alert templates and status pages as Terraform HCL, with import blocks so they are adopted rather than recreated. Secrets are not exported; the output references Terraform variables that hold them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Optional tag to filter monitors by, e.g. 'agent:claude'. Only monitors carrying this tag (and their routes/templates) are exported. | |
| include | No | Optional comma-separated subset of monitors,destinations,routes,templates,status_pages. Omitted: everything. | |
| monitor_slug | No | Optional slug to export a single monitor by. Combines with tag if both are given. |