https://github.com/xadozuk/terramorph
Terraform version manager for PowerShell
https://github.com/xadozuk/terramorph
Last synced: 5 months ago
JSON representation
Terraform version manager for PowerShell
- Host: GitHub
- URL: https://github.com/xadozuk/terramorph
- Owner: xadozuk
- License: apache-2.0
- Created: 2022-05-27T08:38:59.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T09:17:35.000Z (over 2 years ago)
- Last Synced: 2024-08-13T07:05:44.490Z (8 months ago)
- Language: PowerShell
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - xadozuk/terramorph - Terraform version manager for PowerShell (PowerShell)
README
# Terramorph
Terraform version manager for PowerShell
## Install
### Install PowerShell module
```powershell
Install-Module -Name terramorph
```### Configure Terramorph
To add terramorph shim folder into your PATH:
```powershell
Install-Terramorph
```## Terraform version management
### List version
To list available version:
```powershell
Get-TerraformVersion -All
```To list installed version:
```powershell
Get-TerraformVersion
```### Install a version
To install a terraform, specify a specific version:
```powershell
Install-TerraformVersion -Version 1.2.1
```You can also install the latest version:
```powershell
Install-TerraformVersion -Latest
```To reinstall terraform, you can add `-Force`:
```powershell
Install-TerraformVersion -Version 1.2.1 -Force
```### Set default terraform version
```powershell
Set-TerraformVersion -Version 1.2.1
```To get the current configured version:
```powershell
Get-TerraformVersion -Current
```**Info:**
If you need to to recreate shim, you can use:
```powershell
Sync-TerraformShim
```This will recreate the shim based on your current default terraform version.