Installing Terraform :

Windows Installation

METHOD 1: Winget (BEST & SIMPLEST – Recommended)

Step 1: Open PowerShell as Administrator

Step 2: Install Terraform

winget install HashiCorp.Terraform

Step 3: Verify installation

terraform version

Advantages

  • Automatically sets PATH

  • Easy updates


METHOD 2: Chocolatey (Popular in Enterprises)

Step 1: Install Chocolatey (if not already installed)

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Step 2: Install Terraform

choco install terraform -y

Step 3: Verify

terraform version

METHOD 3: Manual Installation (Offline / Restricted Environments)

Step 1: Download

HashiCorp Terraform Releases → Windows AMD64 ZIP

Step 2: Extract

terraform.exe

Step 3: Add to PATH

Move terraform.exe to:

C:\terraform\

Add to PATH via:

SystemAdvanced system settings Environment VariablesPathEdit

Add this path:

C:\terraform\

Step 4: Verify

terraform version

Recommended Tools for Windows (Highly Suggested)

AWS CLI

winget install Amazon.AWSCLI

Azure CLI

winget install Microsoft.AzureCLI

OCI CLI

winget install Oracle.OCI-Cli

Terraform Version Management (Optional but Pro)

tfenv (via Git Bash / WSL)

git clone https://github.com/tfutils/tfenv.git ~/.tfenv echo 'export PATH="$HOME/.tfenv/bin:$PATH"' >> ~/.bashrc

Security & Linting Tools

winget install TFLint.TFLint pip install checkov winget install AquaSecurity.tfsec

VS Code Extensions (Must-Have)

HashiCorp Terraform Terraform Snippets GitLens

Test Full Setup

terraform --help terraform init terraform fmt terraform validate

If you want, I can also:

  • Convert this into Markdown / PDF

  • Make it course-ready

  • Add screenshots + troubleshooting

Just tell me.


Comments

Popular posts from this blog

1. Terraform workflow using terraform commands

Terraform-Interview- QUESTIONS

Terraform Practicle Questions