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
| Attribute | Type | Behavior | Description |
|---|---|---|---|
content | string | Required | Bash script body executed when the sandbox starts (up to 64 KiB). |
project_id | string | Optional, Computed | Owning project. Defaults to the secret key's project scope. Immutable. |
content_hash | string | Computed | SHA-256 hex digest of the content. |
updated_at | string | Computed | Last-update timestamp (RFC 3339). |
id | string | Computed | Composite ID, <project_id>/init_script. |
Import
terraform import sazabi_sandbox_init_script.main "<project_id>"