Organization Terraform
Open Organization Admin → Terraform for durable configuration managed with the organization-rooted StatiBeat provider. It is separate from operational actions such as acknowledging Alerts and from the legacy page Setup / Export workspace.
Create or rotate the organization key
Use the dedicated Terraform API Key controls. Store the newly created/rotated secret privately when shown; later views expose metadata rather than a recoverable secret. Update local automation and CI after rotation and verify that they use the new key. Revoke an obsolete key when its use should stop.
The credential is bounded by the creator's current grants and enabled features. It does not add missing product/resource access. Expand Provider v2 setup to copy the provider block, environment variables and Install and Plan commands shown for the selected organization. Keep the token in STATIBEAT_TOKEN, not committed configuration.
Select an export mode
Choose the supported products/resources in the inventory and read included dependencies and warnings. Select Fresh Terraform to generate configuration intended to create resources, or Terraform with imports to adopt existing ones. Choose Generate and download and inspect the project, modules and manifest.
Exports omit secrets and operational work such as runtime Alerts, incidents, executions, billing and invitations. Do not treat an omitted resource as empty live configuration or remove dependencies merely to shorten a project.
Verify adoption before claiming success
- Back up existing state with your normal backend process.
- Follow the generated setup and provider configuration, including the application root, exactly one organization selector and explicit page IDs for page resources.
- Run
terraform init,terraform validateandterraform plan. - Review every import, identifier and proposed change before applying the intended plan.
- Run a second plan and require no changes before declaring adoption complete.
A download does not import state or apply configuration. Do not point old page-scoped state at the v2 provider by changing only its source address.
Recover from unavailable exports or credential errors
Check read permissions across the selected products, product availability and the actual export warning. If a key was lost or revoked, use the supported replacement workflow and update consumers. If planning fails, inspect the generated manifest and exact error before applying a different plan. See Terraform workspace and export for exclusions and migration boundaries.