IBM Cloud Docs
I am getting a "failed to install provider" error when running terraform init on Windows

I am getting a "failed to install provider" error when running terraform init on Windows

When using the migration tool on Windows to migrate IBM Cloud® Activity Tracker or IBM Log Analysis instances, an error is returned when running terraform init.

You get an error message similar to the following:

Error: Failed to install provider

Terraform fails to download the provider.exe file if the local path exceeds the Windows 260 character (MAX_PATH) default path limit.

This issue can be resolved in one of the following ways:

  • Place the directory with your Terraform files in a shallower path on your system and run terraform init from that location.

  • Set the TF_DATA_DIR environment value to a directory in a shallower path to place the Terraform plug-in cache and working directory in a separate working directory from the IBM Cloud Logs migration Terraform files and run terraform init again from the location of the IBM Cloud Logs migration Terraform files.