Installing Terraform using Chocolatey on Windows
In this recipe, we will learn how to install Terraform on a Windows machine using a script that uses the Chocolatey software package manager.
Getting ready
To complete this recipe, you’ll need to be using a Windows operating system and have Chocolatey (https://chocolatey.org/) installed, which is a Windows software package manager.
If you don’t have Chocolatey installed, you can easily install it by following these steps:
- Open a PowerShell terminal in administrator mode, as shown in the following screenshot:
Figure 1.8: Running PowerShell as administrator
- Then, execute the following script in the terminal:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1&apos...