Terraform provider
sazabi_automation
Terraform resource for a scheduled Sazabi automation.
Manages a Sazabi automation: a durable project script run on a cron schedule. Name, description, and schedule update in place; the script is immutable and changing it forces replacement. Destroying the resource disables the automation rather than deleting it server-side.
Example
resource "sazabi_automation" "nightly" {
name = "nightly-reconcile"
script_id = sazabi_script.restart.id
cron_expression = "0 3 * * *"
timezone = "UTC"
}Arguments
| Attribute | Type | Behavior | Description |
|---|---|---|---|
name | string | Required | Automation name (1-200 characters). |
script | string | Optional | Inline script body. Provide exactly one of script or script_id. Immutable. |
script_id | string | Optional | ID of an existing script. Provide exactly one of script or script_id. Immutable. |
project_id | string | Optional, Computed | Owning project. Defaults to the secret key's project scope. Immutable. |
description | string | Optional | Automation description (1-500 characters). |
cron_expression | string | Optional, Computed | Cron schedule. Defaults to every minute. |
timezone | string | Optional, Computed | Schedule timezone. Defaults to UTC. |
timeout_seconds | number | Optional, Computed | Per-run timeout (1-3600). Defaults to 60. |
enabled | bool | Optional, Computed | Whether the automation runs. Defaults to true. |
script_name | string | Computed | Resolved script name. |
id | string | Computed | Automation ID. |
Import
terraform import sazabi_automation.nightly auto_...