Last updated on: 2023-10-18 04:01:19.

Install Terraform

  1. To install Terraform, find and download the appropriate package for your system. Terraform is packaged as a zip archive. Use the SHA256 checksums for Terraform 0.12.9 and verify the checksums signature file which has been signed using HashiCorp’s GPG key before opening the zip file to ensure you are not using a maliciously modified version of Terraform.
  2. After downloading Terraform, unzip the package. Terraform runs as a single binary named terraform. Any other files in the package can be safely removed and Terraform will still function.
  3. Make sure that the terraform binary is available on the PATH.

Verifying the Installation

After installing Terraform, verify the installation worked by opening a new terminal session and running the terraform command.

You will see help output like this:

$ terraform
Usage: terraform [--version] [--help] <command> [args]

The available commands for execution are listed below.
The most common, useful commands are shown first, followed by
less common or more advanced commands. If you're just getting
started with Terraform, stick with the common commands. For the
other commands, please read the help and docs before usage.

Common commands:
    apply              Builds or changes infrastructure
    console            Interactive console for Terraform interpolations
# ...

If you get an error that terraform could not be found, your PATH environment variable was not set up properly. Ensure that your PATH variable contains the directory where Terraform was installed.

Now you can build infrastructure on the F5 BIG-IP system (for example, policy configuration) using Terraform resources.