Sazabi
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

AttributeTypeBehaviorDescription
namestringRequiredScript name (1-64 characters, restricted character set). Immutable.
contentstringRequiredScript body (at least 1 character).
project_idstringOptional, ComputedOwning project. Defaults to the secret key's project scope. Immutable.
descriptionstringOptionalScript description (1-500 characters).
content_hashstringComputedSHA-256 hex digest of the content.
created_atstringComputedCreation timestamp (RFC 3339).
updated_atstringComputedLast-update timestamp (RFC 3339).
idstringComputedScript ID.

Import

terraform import sazabi_script.restart scr_...