Sazabi
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.

Limited release

Automations are currently in limited release and are not yet enabled for every organization. Until they are enabled for yours, the API rejects this resource. Contact support to request access.

Example

resource "sazabi_automation" "nightly" {
  name            = "nightly-reconcile"
  script_id       = sazabi_script.restart.id
  cron_expression = "0 3 * * *"
  timezone        = "UTC"
}

Arguments

AttributeTypeBehaviorDescription
namestringRequiredAutomation name (1-200 characters).
scriptstringOptionalInline script body. Provide exactly one of script or script_id. Immutable.
script_idstringOptionalID of an existing script. Provide exactly one of script or script_id. Immutable.
project_idstringOptional, ComputedOwning project. Defaults to the secret key's project scope. Immutable.
descriptionstringOptionalAutomation description (1-500 characters).
cron_expressionstringOptional, ComputedCron schedule. Defaults to every minute.
timezonestringOptional, ComputedSchedule timezone. Defaults to UTC.
timeout_secondsnumberOptional, ComputedPer-run timeout (1-3600). Defaults to 60.
enabledboolOptional, ComputedWhether the automation runs. Defaults to true.
script_namestringComputedResolved script name.
idstringComputedAutomation ID.

Import

terraform import sazabi_automation.nightly auto_...