Terraform Brew



  • 1Install brew, PowerShell, Terraform and Postman on my MacBook Pro running OS X
    • 1.1Start with Brew
    • 1.3Install Terraform (using Brew)
    • 1.4Install Postman
  1. Brew tap install terraform — tfswitch The tfswitch command line tool lets you switch between different versions of terraform. If you do not have a particular version of terraform installed.
  2. How to use this example. Cd eks-vpc; Run terraform init; Run terraform plan and review; Run terraform apply; Install helm charts. Cd charts; Run terraform init; Run terraform plan and review; Run terraform apply; Structure. This repository provides the minimal set of resources, which may be required for starting comfortably developing the process of new IaC project.

Imperial Coffee Stout. In collaboration with Onyx Coffee and hip-hop artist, Propaganda. We used their collaboration coffee to create this Imperial Stout. Terraform is a Porter - American style beer brewed by Zero Issue Brewing in Calgary, AB, Canada. Score: n/a with 9 ratings and reviews.

I have some scripting experience with perl, python and I have been doing some Visual Basic programming back in the days but I never really used Terraform. PowerCLI is not new for me as I created some scripts in the past. After reading some blogs and watching some YouTube video’s I realised I had chosen the right path for me. But where do I start? What script do I use to achieve what result?

Start with Brew

Install Terraform Mac

Metal

Brew is a package manager for OS X. With this package manager we install Terraform and PowerShell

Install Brew on OS X

CLICK ON EXPAND > ON THE RIGHT > TO SEE THE OUTPUT (Brew installation output) > :

Install PowerShell (using Brew)


When PowerShell is installed on OS X you can start the PowerShell shell like this:


Source

Install Terraform (using Brew)

Terraform

Terraform is latest version available (as the time of writing) of Terraform is 0.12.Terraform 0.12 coding syntax may be different and most example you find are the internet are written for 0.11 and before.For this reason I decided to install both versions of Terraform and switch between them when I require this.

Install Terraform v0.11


Install Terraform v0.12

I already installed v0.11 but you can run the same command for updating and installing Terraform 0.12.

Terraform Bare Metal

CLICK ON EXPAND > ON THE RIGHT > TO SEE THE OUTPUT (Terraform 0.12 installation output) > :

When you run the following command, Brew will install the latest version of Terraform:


Terraform v0.11 and v0.12 side by side

Terraform Previous Versions

Verify if v0.11 is available:


Verify if v0.12 Is available:


If you are using multiple versions of Terraform code that requires different Terraform versions you can install `tfenv`

First you need to unlink the current version you are running:


Then you install `tfenv`:


After `tfenv` is installed you can see what versions of Terraform are available:

CLICK ON EXPAND > ON THE RIGHT > TO SEE THE OUTPUT (List available Terraform versions) > :

Now we install a specific older version of Terraform:


Then we install a more recent version of Terraform:


Then we install the latest version of Terraform:


As you can see every time you install a new version it automatically switches to that latest installed version.If you want to switch back to a previous installed version you can do this as well:


Install Postman

Download the latest version here.

Create an account and sign in.

Terraform Brookfield Merger

Connect to the NSX-T Manager using postman

Rutger Blom has written a very good blog article on how to use PostMan with NSX-T.

Sources

Retrieved from 'http://www.iwan.wiki/index.php?title=Install_brew,_PowerShell_and_Terraform_on_my_MacBook_Pro_running_OS_X&oldid=1655'