Sazabi
Terraform provider

sazabi_sandbox_init_script

Terraform resource for a project sandbox custom initialization script.

Manages a custom initialization bash script executed when a project sandbox boots (for example, to install custom CLI packages or tooling). Each project has at most one init script; destroying the resource clears the script from the project.

Example

resource "sazabi_sandbox_init_script" "main" {
  content = file("${path.module}/scripts/sandbox-init.sh")
}

resource "sazabi_sandbox_environment_variable" "my_token" {
  key   = "MY_TOOL_TOKEN"
  value = var.my_tool_token
}

Arguments

AttributeTypeBehaviorDescription
contentstringRequiredBash script body executed when the sandbox starts (up to 64 KiB).
project_idstringOptional, ComputedOwning project. Defaults to the secret key's project scope. Immutable.
content_hashstringComputedSHA-256 hex digest of the content.
updated_atstringComputedLast-update timestamp (RFC 3339).
idstringComputedComposite ID, <project_id>/init_script.

Import

terraform import sazabi_sandbox_init_script.main "<project_id>"