Terraform version manager for PowerShell
Install-Module -Name terramorph
To add terramorph shim folder into your PATH:
Install-Terramorph
To list available version:
Get-TerraformVersion -All
To list installed version:
Get-TerraformVersion
To install a terraform, specify a specific version:
Install-TerraformVersion -Version 1.2.1
You can also install the latest version:
Install-TerraformVersion -Latest
To reinstall terraform, you can add -Force
:
Install-TerraformVersion -Version 1.2.1 -Force
Set-TerraformVersion -Version 1.2.1
To get the current configured version:
Get-TerraformVersion -Current
Info: If you need to to recreate shim, you can use:
Sync-TerraformShim
This will recreate the shim based on your current default terraform version.