Where can I set path to make.exe on Windows?
Or you can just run this PowerShell command to append extra folder to the existing path:
$env:Path += ";C:\temp\terraform"
The path is in the registry but usually you edit through this interface:
- Go to
Control Panel
->System
->System settings
->Environment Variables
. - Scroll down in system variables until you find
PATH
. - Click edit and change accordingly.
- BE SURE to include a semicolon at the end of the previous as that is the delimiter, i.e.
c:\path;c:\path2
- Launch a new console for the settings to take effect.
Here I'm providing solution to setup Terraform environment variable in windows for beginners.
- Download the terraform ZIP file from Terraform site.
- Extract the .exe from the ZIP file to a folder eg C:\Apps\Terraform copy this path location like C:\Apps\terraform\
- Add the folder location to your PATH variable, eg:
Control Panel -> System -> System settings -> Environment Variables
In System Variables
, select Path
> edit
> new
> Enter the location of the Terraform .exe, eg C:\Apps\Terraform
then click OK
- Open a new CMD/PowerShell and the Terraform command should work