Upgrade Terraform Enterprise
This topic describes how to upgrade Terraform Enterprise installations on non-Replicated runtimes. For information about upgrading Replicated deployments, refer to Upgrade Terraform Enterprise on Replicated.
Introduction
We recommend upgrading in a non-production environment first before upgrading the production instance of Terraform Enterprise.
Upgrade
Complete the following steps to upgrade Terraform Enterprise:
Back up your Terraform Enterprise data. Refer to Backup and restore for instructions.
Use the Terraform Enterprise CLI to stop any existing Terraform runs and prevent Terraform Enterprise from starting new operations. Refer to Gracefully stop work on a node for instructions.
If your deployment is configured to run multiple
terraform-enterprise
nodes, scale down to a single node. You can run multiple nodes when Terraform Enterprise is inactive-active
mode. Refer to Configure the operational mode for additional information.Stop the Terraform Enterprise application.
For installs that use Docker Compose, use the following command:
Pull the new Terraform Enterprise image for a specific release:
images.releases.hashicorp.com/hashicorp/terraform-enterprise:vYYYYMM-#
.For installs that use Docker Compose, update the
compose.yaml
with the appropriate image tag:Start the Terraform Enterprise application with the new image.
For installs that use Docker Compose, use the following command:
Repeat the process for the production instance of Terraform Enterprise.