https://github.com/xadozuk/terramorph
Terraform version manager for PowerShell
https://github.com/xadozuk/terramorph
Last synced: 4 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T13:51:27.000Z (about 1 year ago)
- Last Synced: 2024-12-04T02:35:15.669Z (12 months ago)
- Language: PowerShell
- Size: 50.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.