Getting Handle Is Invalid error when running Terraform init on Windows

0

I installed Terraform on my Windows 10 development machine. I know that my terraform scripts are correct because they run fine on my colleague's Linux machine. I downloaded my scripts onto the Windows machine, created my terraform.rc file and ran 'terraform init' in my scripts folder.

This is the output I am seeing.

terraform init
There are some problems with the CLI configuration:

Error: Error reading D:\Apps\Terraform: read D:\Apps\Terraform: The handle is invalid.


As a result of the above problems, Terraform may not behave as intended.


Initializing modules...

Initializing the backend...

Error: Required token could not be found

Make sure you configured a credentials block for app.terraform.io in your CLI
Config File.

What does "The handle is invalid" mean? I haven't been able to find that anywhere.

Mikutus

Posted 2019-08-27T19:11:57.803

Reputation: 1

No answers