Archive by category "Terraform"

How to install terraform on Windows

  1. Download Terraform
  2. Unzip Terraform to c:\Terraform
  3. Add terraform to your environment variables:

Test your installation typing terraform in CMD.
Your output should look like this:

A provider named “” could not be found in the Terraform Registry.

After installing Terraform and GO. I want to talk with my Hyper-v server for deploying some VMs.

I used this provider:

How to Install the Hyperv provider:

Now there is a file created: terraform-provider-hyperv.exe
After a terraform init you get the following message.

“A provider named “hyperv” could not be found in the Terraform Registry.”

This is because the custom provider is not installed in your default plugin directory.

The Windows default plugin directory is located in the following location: (C:\Users\YOURUSERNAME\AppData\Roaming\terraform.d\plugins\windows_amd64)

With PowerShell:

Copy the (terraform-provider-hyperv.exe) file you created with the go build in the plugin folder.

Now navigate to your cloned git directory \ examples \ basic and do a terraform init.