Skip to content

Terraform Provider

Note: The official Terraform provider is currently in Beta.

Pakyas allows you to define your checks alongside your infrastructure.

terraform {
required_providers {
pakyas = {
source = "pakyas/pakyas"
version = "~> 0.1"
}
}
}
provider "pakyas" {
api_key = var.pakyas_api_key
}
resource "pakyas_check" "nightly_backup" {
name = "Nightly Backup"
slug = "nightly-backup"
schedule = "0 2 * * *"
grace = 3600 # 1 hour
channels = ["email", "slack"]
}

You can import existing checks:

Terminal window
terraform import pakyas_check.nightly_backup <check_uuid>
  • pakyas_check
  • pakyas_file_check (Coming soon)
  • pakyas_notification_channel

(See the generic HTTP provider examples in our GitHub repository for current workarounds)