# Terraform Installation

What is Terraform?

* Terraform is an Infrastructure as code tool that allows you to build change, and version infrastructure safely and efficiently.
    

Installation Process:

* Download the [Terraform](https://developer.hashicorp.com/terraform/downloads?product_intent=terraform) from the official website on your Windows laptop
    
* ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698813458999/604a88d0-2d4a-43dd-be1f-96a7d1146579.png align="center")
    
* Create a new folder called "Terraform" and move the downloaded Terraform zip folder to this location.
    
* Unzip the Terraform zip folder
    
* The unzip terraform zip folder contains a terraform executable, move that executable to the Terraform folder.
    
* Delete the zip folder or the other things in this folder except the Terraform executable
    
* Now open the command prompt in this location and type terraform -version
    
* It will should show the same version that you have downloaded from the official terraform website.
    

### Adding Providers

As we have installed the Terraform, now we need to install the [Terraform providers](https://registry.terraform.io/browse/providers) such as Azure or AWS etc...

Let's take Azure

copy the terraform code from the terraform providers --&gt; Azure provider as shown below

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698817359184/8f817270-c690-40d5-b8b5-c2c5277a2755.png align="center")

Bring up the VSCode, if you have not installed it, it can be installed from [https://code.visualstudio.com/download](https://code.visualstudio.com/download)

Now, open the folder that you have created for the terraform previously.

Create a File there with the name main.tf (.tf means terraform extension)

Paste the Azure Provider code in the main.tf file and save it.

Now open the terminal --&gt; cmd prompt in the vs code. Navigate to that folder and run the command terraform init

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698817806436/c5e5246e-0755-4d61-883b-fc98945aa5bf.png align="center")

This will automatically download the Azure provider and get the provider ready as shown below:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1698817877829/a89a8336-3035-474f-bc79-9f6767c8e5e3.png align="center")

Happy Terraforming!!
