This article gives a couple options on how to install or setup Terraform on a macOS Sierra system. The first optional way is to use HomeBrew. Which simplifies the install process and makes updating easy too.
Prerequisites
Homebrew (IF going Homebrew way instead of downloading zip.)
Download Shuttle is one of our top download managers for Mac, as it is a simple solution for managing multiple downloads and accelerating transfer speeds. This application can split your downloads in multiple segments and download them all at once, handle links with authentication, and includes basic, but effective, link management options. Sample terraform localstack. Sample project to use Terraform, Localstack (AWS Local) and Docker compose with Nodejs. As this is a simple example I will use only this references. Kubernetes (K8S) is an open-source workload scheduler with focus on containerized applications. We will be running a Kubernetes cluster on our local machine using the following tools: Install Docker for Mac. Docker is used to create, manage, and run our containers. It lets us construct containers. HashiCorp, the developer of Terraform, provides a library of open-source Terraform modules “out of the box” to support many common tasks. To use Terraform for Oracle Cloud Infrastructure, you must download two components - Terraform from HashiCorp, and then the Oracle Cloud Infrastructure Terraform provider.
Homebrew (Option 1)
The easiest and quickest way to install Terraform is using Homebrew.
Install Example
A symlink will be created for the binary /usr/local/bin/terraform -> ../Cellar/terraform/0.9.1/bin/terraform
Upgrading
Manually (Option 2)
The versions seem to be bottled up very quickly with HomeBrew so I see little reason why to do a manual install, but this is how you do it.
Download binary zip from HashiCorp
https://www.terraform.io/downloads.html
Unzip
Copy binary to a place in the path such as /usr/local/bin/terraform
Download Terraform 0.12
Verify Install
A simple test that the binary is in the path and such is to call the version.
Example
Download Terraform 0.11.14 For Mac
Sources
Install Terraform
Retrieved from 'https://www.bonusbits.com/index.php?title=HowTo:Install_Terraform_on_macOS&oldid=9579'