Instead of downloading the latest version, there may be a need to install a specific version to suffice for Terraform Enterprise restores, Terraform Enterprise recoveries, etc. The current install instructions by default for Terraform Enterprise will install the latest version of the software. However, there is a way of pinning a specific version of Terraform Enterprise within the installer script in the download URL.
Here are the steps that will assist with the online installation of pinning to a specific version. The release sequence number that associates with the version number is required to instruct the script on which version to install Terraform Enterprise. The sequence number can be found in parenthesis next to the version number within the Terraform UI location
https://TFE-URL:8800/releases. For example, on the Releases page a release could display something similar to
v202102-1 (507) and 507 would be the release sequence number necessary to install to v202102-1 if that was the pinning version of choice. If there is no existence of a Terraform Enterprise instance to gather this information,
A list of release sequences can be found here:
1. curl https://install.terraform.io/ptfe/stable > install.sh 2. sudo bash install.sh release-sequence=<plug in the release sequence number>
Notice in the steps there is no need to curl a specific URL to install a specific release. When running the script with the release-sequence flag (as shown above), the release-sequence flag dictates to the script to pull that specific version during installation. At this point, the rest of the install can proceed in accordance to documentation.
If issues persist after completing the steps outlined in this guide, please contact HashiCorp Support to request further assistance
Direct links used in the article:
Online install link:
Installer script link: