Terraform provider
sazabi_script
Terraform resource for a durable Sazabi project script.
Manages a durable bash script stored in a Sazabi project. Scripts are keyed by name; renaming forces replacement. Destroying the resource soft-deletes the script.
Example
resource "sazabi_script" "restart" {
name = "restart-worker"
content = file("${path.module}/scripts/restart-worker.sh")
}Arguments
| Attribute | Type | Behavior | Description |
|---|---|---|---|
name | string | Required | Script name (1-64 characters, restricted character set). Immutable. |
content | string | Required | Script body (at least 1 character). |
project_id | string | Optional, Computed | Owning project. Defaults to the secret key's project scope. Immutable. |
description | string | Optional | Script description (1-500 characters). |
content_hash | string | Computed | SHA-256 hex digest of the content. |
created_at | string | Computed | Creation timestamp (RFC 3339). |
updated_at | string | Computed | Last-update timestamp (RFC 3339). |
id | string | Computed | Script ID. |
Import
terraform import sazabi_script.restart scr_...