Terraform Cloud "Terraform version ... not available" workspace version in CI
The remote run uses the Terraform version pinned on the workspace, not the CLI version on the runner. If the workspace pins a version HCP Terraform no longer offers, or a version that conflicts with required_version, the run cannot start.
What this error means
A remote run fails with "Terraform version X is not available" or that the workspace Terraform version does not satisfy the configuration required_version constraint.
Error: Terraform version "1.2.9" is not available in HCP Terraform for this
workspace, or does not satisfy the configuration's required_version constraint.Common causes
The workspace pins an unavailable version
A version that was set long ago may no longer be offered, so runs on that workspace cannot start.
The workspace version conflicts with required_version
The configuration required_version excludes the version pinned on the workspace, so plan is blocked.
How to fix it
Set a supported workspace version
- Open Workspace > Settings > General > Terraform Version.
- Pick a version that HCP Terraform offers and that satisfies
required_version. - Re-run the plan.
Align required_version with the workspace
Update the configuration constraint so it includes the workspace version you intend to run on.
terraform {
required_version = ">= 1.6.0"
}How to prevent it
- Keep the workspace Terraform version and
required_versioncompatible. - Bump workspace versions before they age out of availability.
- Remember the remote run version comes from the workspace, not the CLI.