Install Terraform

To Install terraform on Mac

  1. Open the Terminal.

  2. Install homebrew:

    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  3. Note: This command may take up to 5 minutes to complete as it downloads the files first and then installs them.

  4. After you see the output as Installation successful! You need to run those two commands mentioned in the Next steps

  5. Copy-paste both of the commands one by one and press Enter.

  6. Install the HashiCorp tap, by running the below command:

    • brew tap hashicorp/tap

  7. Install terraform by pasting the below command to Terminal:

    • brew install hashicorp/tap/terraform

  8. Check the version of Terraform:

    • terraform version