.terraform-version

· Thiago Perrotta · Oct. 24, 2025, 1:35 p.m.
Summary
.terraform-version is a useful file in git repositories for specifying Terraform versions. While popular tools like tfenv and tfswitch recognize it, the hashicorp/setup-terraform GitHub action does not out of the box. This post details a workaround to manually read the version from the .terraform-version file during CI/CD workflows using GitHub actions.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →