export_terraform
Export LastPing monitors, destinations, routes, alert templates, and status pages as Terraform HCL. Includes import blocks for adoption and references variables for secrets, which are not exported.
Instructions
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. |