- To install Terraform, find the appropriate package for your system and download it. Terraform is packaged as a zip archive. You can find the SHA256 checksums for Terraform 0.12.9. 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.
- 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.
- Make sure that the
terraformbinary is available on the
PATH. For instructions on setting the PATH on Linux and Mac, see this page. For instructions on setting the PATH on Windows, see this page.
Verifying the Installation¶
After installing Terraform, verify the installation worked by opening a new terminal session and run the command
terraform. You should see help output similar to 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. Please go back and ensure that your
PATH variable contains the directory where Terraform was installed.
Now you should be able to build infrastructure on the BIG-IP system (for example: policy configuration) using terraform resources.