Skip to content

Terraform Environment

Use the Terraform adapter when a component is managed by Terraform.

components:
infra:
type: terraform
runner: local
workdir: ./preview
source:
path: ./terraform

Ork copies the module to the runner, runs terraform init, then applies it.

If the module does not define its own backend, Ork captures local Terraform state artifacts after apply and restores them before destroy.

This matters for stateless runners, where the runner workdir may not exist by the time ork down runs.

If the module defines a Terraform backend block, Ork treats Terraform as owning its own state and skips local tfstate artifact capture.