export_terraform
Export LastPing monitors, destinations, routes, alert templates, and status pages as Terraform HCL with import blocks, so existing resources are adopted rather than recreated; secrets are excluded.
Instructions
Requires an API key with the read scope or higher. Export existing LastPing monitors, destinations, routes, alert templates and status pages as Terraform HCL, including import blocks so they are adopted rather than recreated. Secrets are NOT exported — the output references Terraform variables you must fill in.
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. Omit to export everything. | |
| monitor_slug | No | Optional slug to export a single monitor by. Combines with tag if both are given. |