INFRASTRUCTURE AS CODE

Manage OKStatus as code with Terraform

Provision monitors, alert channels, status pages and maintenance windows with Terraform — reviewable, version-controlled, and repeatable across every environment you run.

  • Official provider — clearcloud-fr/okstatus on the Terraform Registry
  • 5 resources, 3 data sources — monitors, incidents, status pages, alert channels, maintenance windows
  • Drops straight into your existing GitOps pipeline — plan, review, apply
main.tf terraform apply
terraform {
  required_providers {
    okstatus = {
      source = "clearcloud-fr/okstatus"
    }
  }
}

resource "okstatus_monitor" "api" {
  name                  = "Production API"
  url                   = "https://api.example.com/health"
  type                  = "http"
  interval              = 60
  regions               = ["fr-dc3", "de-fra", "nl-ams"]
  accepted_status_codes = ["200-299"]
}