Expected Outcome
Print a list of the available Terraform Enterprise releases available for Flexible Deployment Options.
Prerequisites
- Terraform Enterprise Flexible Deployment Options License
Procedure
- Create an
fdo_releases.sh
file with the following content:#!/bin/bash
# Set the Terraform license string as an environment variable
TF_LICENSE_STRING=<YOUR_LICENCE_STRING>
# Use heredoc for the curl command with proper indentation
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
exit $? - Make the script executable
chmod +x fdo_releases.sh
- Execute the script to print a list of Terraform Enterprise FDO releases
./fdo_releases.sh
v202309-1
v202310-1
v202311-1
v202312-1
v202401-1
v202401-2
v202402-1
v202402-2