Skip to content

xadozuk/terramorph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terramorph

Terraform version manager for PowerShell

Install

Install PowerShell module

Install-Module -Name terramorph

Configure Terramorph

To add terramorph shim folder into your PATH:

Install-Terramorph

Terraform version management

List version

To list available version:

Get-TerraformVersion -All

To list installed version:

Get-TerraformVersion

Install a version

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 default terraform version

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.