Introduction
This guide provides a shell script to list the available Terraform Enterprise (TFE) releases for Flexible Deployment Options (FDO).
Expected Outcome
You will have a shell script that can print a list of available TFE FDO release versions.
Prerequisites
- A valid Terraform Enterprise Flexible Deployment Options license.
Procedure
Follow these steps to create and run the script.
-
Create an
fdo_releases.shfile with the following content. Be sure to replace the placeholder with your actual license string.#!/bin/bash ## Replace <YOUR_LICENSE_STRING> with your TFE FDO license. TF_LICENSE_STRING=<YOUR_LICENSE_STRING> ## This command fetches the list of TFE image tags. curl -sX GET \ https://images.releases.hashicorp.com/v2/hashicorp/terraform-enterprise/tags/list \ -u "terraform:${TF_LICENSE_STRING}" | jq -r '.tags[]' | sort | grep ^v2 -
Make the script executable.
$ chmod +x fdo_releases.sh
-
Execute the script to print the list of available TFE FDO releases. The output will display a list of versions.
$ ./fdo_releases.sh ## The output will resemble the following: v202309-1 v202310-1 v202311-1 v202312-1 v202401-1 v202401-2 v202402-1 v202402-2
Additional Information
- For more details on FDO, refer to the Terraform Enterprise Flexible Deployment Options documentation.
- To see release notes for each version, visit the Terraform Enterprise Releases page.