Terraform Nuggets: Issues with installing terraform providers in Windows 10 environments
If running terraform version > = 0.14 in windows 10 environments at times you might face issues wherein while performing terraform init you face errors indicating that the installation of some of the providers fail. The error log would say that provider was not found at the specified path. Something like below:-
Initializing provider plugins…
- Finding gavinbunney/kubectl versions matching “1.9.1”…
- Finding hashicorp/aws versions matching “~> 3.0”…
- Finding hashicorp/kubernetes versions matching “~> 1.11”…
- Installing gavinbunney/kubectl v1.9.1…
- Installing hashicorp/aws v3.21.0…
- Installed hashicorp/aws v3.21.0 (signed by HashiCorp)
- Installing hashicorp/kubernetes v1.13.3…
Error: Failed to install provider
Error while installing gavinbunney/kubectl v1.9.1: open
.terraform\providers\registry.terraform.io\gavinbunney\kubectl\1.9.1\windows_amd64\terraform-provider-kubectl_v1.9.1.exe:
The system cannot find the path specified.
Now although the cause of this error is not known yet however this seems to be caused due to length paths. To resolve this place your folder containing terraform config files in a shorter path such as C:\Users\ and this would work
Comments
Post a Comment