• Infrastructure Lifecycle Management
    • TerraformManage infrastructure as code
    • PackerBuild machine images
    • NomadOrchestrate workloads
    • WaypointStandardize application patterns
    • VagrantBuild developer environments
  • Security Lifecycle Management
    • VaultCentrally manage secrets
    • BoundarySecure remote access
    • HCP Vault SecretsManage secrets as a service
    • ConsulSecure network services
    • HCP Vault RadarScan for embedded secrets
HashiCorp Cloud Platform
Get started in minutes with our cloud products
All HCP Products
Learn
  • CertificationsGet HashiCorp certified
  • TutorialsLearn HashiCorp products
  • Well-Architected FrameworkAdopt HashiCorp best practices
Terraform
  • Install
  • Tutorials
    • Docs Overview
    • Intro to Terraform
    • Configuration Language
    • Terraform CLI
    • HCP Terraform
    • Terraform Enterprise
    • CDK for Terraform
    • Provider Use
    • Plugin Development
    • Registry Publishing
    • Integration Program
  • Registry(opens in new tab)
  • Try Cloud(opens in new tab)
  • Sign up

Terraform Home

Terraform Enterprise

  • Terraform Enterprise
    • Overview
    • Migrate to a non-Replicated runtime
    • Prepare host environment
    • Deploy to Nomad
    • Deploy to OpenShift
    • Deploy to Podman
    • Create initial admin user
    • Create a custom worker image
      • Overview
      • Connect to Terraform Enterprise CLI
      • Backup and restore
      • Database failover
      • Upgrade
      • Monitor
      • Enable automated license utilization reports
      • Enable automated product usage reports

  • HCP Terraform Agents

  • Resources

  • Tutorial Library
  • Certifications
  • Community Forum
    (opens in new tab)
  • Support
    (opens in new tab)
  • GitHub
    (opens in new tab)
  • Terraform Registry
    (opens in new tab)
  1. Developer
  2. Terraform
  3. Terraform Enterprise
  4. Deploy Terraform Enterprise
  5. Manage deployment
  6. Upgrade
  • Terraform Enterprise
  • v202501-1
  • v202411-2
  • v202411-1
  • v202410-1
  • v202409-3
  • v202409-2
  • v202409-1
  • v202408-1

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:

  1. Back up your Terraform Enterprise data. Refer to Backup and restore for instructions.

  2. 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.

  3. 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 in active-active mode. Refer to Configure the operational mode for additional information.

  4. Stop the Terraform Enterprise application.

    For installs that use Docker Compose, use the following command:

    $ docker compose down
    

    For installs that use Helm charts, update the values.yaml file's replicaCount:

    replicaCount: 0
    
  5. 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:

      name: terraform-enterprise
      services:
        tfe:
          image: images.releases.hashicorp.com/hashicorp/terraform-enterprise:<vYYYYMM-#>
    

    For installs that use Helm charts, update the values.yaml with the appropriate image tag and replicaCount:

      replicaCount: 1
      image:
      repository: images.releases.hashicorp.com
      name: hashicorp/terraform-enterprise
      tag: <vYYYYMM-#>
    
  6. Start the Terraform Enterprise application with the new image.

    For installs that use Docker Compose, use the following command:

    $ docker compose up --detach
    

    For installs that use Helm charts, upgrade the helm release with the new values:

    $ helm -n <TFE_NAMESPACE> upgrade --values=<OVERRIDES_FILE> terraform-enterprise hashicorp/terraform-enterprise
    
  7. Repeat the process for the production instance of Terraform Enterprise.

On this page:

  1. Upgrade Terraform Enterprise
  2. Introduction
  3. Upgrade
  • Certifications
  • System Status
  • Terms of Use
  • Security
  • Privacy
  • Trademark Policy
  • Trade Controls
  • Accessibility
  • Give Feedback(opens in new tab)