Cloud and security

Install Terraform

HashiCorp's Terraform, from the official HashiCorp source so it stays up to date.

  1. Install Terraform
    Terminal
    brew tap hashicorp/tap && brew install hashicorp/tap/terraform

Check it worked

  1. Check the version
    Terminal
    terraform -version
Undo it
  1. Uninstall Terraform
    Terminal
    brew uninstall terraform
  1. Add HashiCorp's package sourceNeeds sudo
    Terminal · Ubuntu / Debian
    wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
    echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
  2. Install TerraformNeeds sudo
    Terminal · Ubuntu / Debian
    sudo apt update && sudo apt install -y terraform

Check it worked

  1. Check the version
    Terminal · Ubuntu / Debian
    terraform -version
Undo it
  1. Uninstall TerraformNeeds sudo
    Terminal · Ubuntu / Debian
    sudo apt remove -y terraform
  1. Install Terraform
    PowerShell
    winget install Hashicorp.Terraform

    Close and reopen PowerShell afterwards.

Check it worked

  1. Check the version
    PowerShell
    terraform -version
Undo it
  1. Uninstall Terraform
    PowerShell
    winget uninstall Hashicorp.Terraform