Terraform
Upgrading
This section explains how to upgrade Terraform Enterprise to a new version. Learn more about availability during upgrades here.
Before Upgrade
We strongly recommend the following:
- Create a backup copy of the storage prior to upgrading your instance. Backup and restore responsibility varies depending on your Terraform Enterprise operation mode.
- Review the general Terraform Enterprise requirements, including credentials, hardware, operating system, data storage, and network.
- Review the upgrade requirements and release notes for the specific Terraform Enterprise release.
Online
Replicated Console
- From the installer dashboard (
https://<TFE HOSTNAME>:8800/dashboard), click the "Check Now" button. Terraform recognizes the new version. - Click "View Update".
- Review the release notes and then click "Install Update".
Replicated Command Line Interface
Connect to the Terraform Enterprise host machine using SSH.
Fetch the versions of Terraform Enterprise.
$ replicatedctl app-release ls --fetchUpgrade to the latest version of Terraform Enterprise.
$ replicatedctl app-release applyAlternatively, upgrade to a specific version of Terraform Enterprise.
$ replicatedctl app-release apply --sequence "504"
Airgapped
Replicated Console
- Determine the update path where the installer will look for new
.airgappackages. You can do this from the console settings of your instance (https://<TFE HOSTNAME>:8800/console/settings) in the fieldUpdate Path. - Download the new
.airgappackage onto the instance and put it into theUpdate Pathlocation. - From the installer dashboard (
https://<TFE HOSTNAME>:8800/dashboard) click the "Check Now" button. Terraform recognizes the new version. - Click "View Update".
- Review the release notes and then click "Install Update".
Replicated Command Line Interface
Connect to the Terraform Enterprise host machine using SSH.
Print the
AirgapPackagePath.$ replicatedctl params export --template '{{.AirgapPackagePath}}'On the Terraform Enterprise host machine, upload the desired airgap packages into the
AirgapPackagePath.Fetch the versions of Terraform Enterprise from the uploaded airgap packages.
$ replicatedctl app-release ls --fetchList the available versions of airgap packages for the upgrade.
$ replicatedctl app-release lsUpgrade to the latest version of the available airgap packages.
$ replicatedctl app-release applyAlternatively, upgrade to a specific version, using one of the options listed in the output of the previous step.
$ replicatedctl app-release apply --sequence "504"