terraform

Provides wrappers around the Terraform CLI (init/plan/apply/destroy) for projects that manage their own state.

⚠️
This extension relies on external Terraform state.

Available Commands

CommandDescription
<command>Runs an arbitrary Terraform command (action name is forwarded to terraform).
initInitializes Terraform providers and backend.
validateGenerate plan file.
selectSelect workspace.
planGenerate plan file.
destroyDestroy the deployment.
applyApply plan file.

Project Initializer

Declares default outputs for Terraform runs.

project {
  @terraform { }
}

Equivalent to:

project {
    ignores = [ ".terraform/" "*.tfstate/" ]
    outputs = [ "*.planfile" ]
}
Last updated on