If you are working with a public cloud provider then you have no doubt heard of Terraform. Everyone is asking about it and everyone whats to learn it!
I created a previous post on the top FREE Azure training resources, if you really want to boost your learning, then get Terraform installed and start deploying Azure resources today!
Getting started with Chocolatey on Mac OSX or Linux is easy as you can simply install using the built-in package manager!
This post is all about Chocolatey, first of all… how to install it on windows 10, and then how to install Terraform.
Open Powershell in Admin mode
First of all, you need to run Powershell in administrative mode. There’s a way to install without having to do this, but to be honest it’s a nightmare… If you are on a company laptop then it’s easier to just ask your IT for help… as you will need administrative privileges to run Powershell in Admin mode.
Confirm Get-ExecutionPolicy is not restricted.
You can do this by entering Get-ExecutionPolicy into your administrative PowerShell window.
If you are seeing a Restricted response, then run Set-ExecutionPolicy All Signed or Set-ExecutionPolicy Bypass – Scope Process.
Run the following command to install Choco
Copy the following command to your elevated PowerShell window.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1’))
Check that it installed correctly
In your PowerShell window, run Choco
Once you have Chocolatey installed you are ready to install packages.
To install Terraform, simply enter the following command into the elevated PowerShell window.
Choco install – y terraform
If you already have Terraform running on your machine, you can upgrade it by entering the following command.
Choco upgrade -y terraform