Site icon installvirtual

How to install Terraform on macOS Big Sur with Homebrew

In this article, I will show you how to install terraform in macOS Big Sur with Homebrew. Terraform is an open-source infrastructure as a code software tool that provides a consistent CLI workflow to manage hundreds of cloud services. Terraform codifies cloud APIs into declarative configuration files.

You might also like: Install Python 3.8.1 on Mac using pyenv

Install terraform on macOS using Homebrew

First, we need to tap HashiCorp, a repository of all our Homebrew packages.

$ brew tap hashicorp/tap

Now let’s install terraform.

$ brew install terraform 

Verify the installation

Now we have installed terraform, we can verify if it is working properly.

$ terraform -v

Terraform v0.14.4

Your version of Terraform is out of date! The latest version
is 0.14.8. You can update by downloading from https://www.terraform.io/downloads.html

Terraform Enable Tab Completion

If you use either bash or zsh you can enable tab completion for Terraform commands. To enable autocomplete, run the following command and then restart your shell.

$ terraform -install-autocomplete

Now the terraform has successfully installed you can start creating infrastructure as a code. Stay tuned for more terraform tutorials.

Source

Exit mobile version