Skip to main content

Terraform provider

The Squasher Terraform provider manages monitors, status pages, notification routing, dashboards, and on-call configuration through the public API. It also exposes project, monitor, and dashboard template data sources.

Install from source

Build the provider with Go and place the binary in your Terraform plugin directory:

Configure

Set SQUASHER_API_KEY to a project API key, and set the project:
api_url defaults to https://api.squasher.ai. api_key defaults to SQUASHER_API_KEY.

Resources

Secrets and import

Webhook URLs, webhook secrets, and PagerDuty integration keys are sensitive and are never read back from the API. After you import a destination, Terraform plans to replace it unless the state already holds those values. Import every other resource with the ID in the table; the next plan is empty when the configuration matches.

Data sources