Theory:
Lab Tutorial:
> Follow the below Steps to Install Terraform on Windows OS:
- Go to google & search for “Terraform Download” [https://developer.hashicorp.com/terraform/install?ajs_aid=b094bb46-8d9f-446c-a9e6-83dea38dac53&product_intent=terraform]
- Then in the Download Page inside Windows Section, Click on “386 Download button” & A Zip File will start downloading
- Now go to C Drive on File Explorer → Go to “Program Files” folder & create a folder named “Terraform” inside that folder
- Now click on the Downloaded file, it will open inside WinRAR software, there click on the “Extract To” & then extract it inside the “Terraform” folder
- Now through File Explorer, copy the path of the Terraform Folder [C:\Program Files\Terraform]
- Now go to CMD & type
terraform version
, it will display nothing because system doesn’t know where is the Terraform present in the system
- Now go to “Environment Variables” → Inside the “User variables” section, select the “Path” option & click on “Edit” → Then click on “New” & paste the path of the Terraform Folder there [C:\Program Files\Terraform] → Now click on “OK” two times to save the Path of Terraform, that will let your system know where is Terraform present inside your system & that’s how you can use it
- Now restart CMD again & type
terraform version
, finally it will display the Version of the Terraform present in your system
> Follow the below Steps to Start using Terraform on Windows OS:
- We have to use “Git” for using it on Windows [Install it as we do or If its already installed, then open “Git Bash”]
terraform version
→ Run this command inside the Git-Bash Terminal to Start using Terraform on Windows through Git-Bash terminal