Install documentation in README.md only works for Terraform 0.12 and earlier
Closed this issue · 0 comments
The documentation in the README.md seems to only give instructions on installing the provider locally for Terraform versions 0.12 and earlier. I couldn't get the provider to load after downloading and following the instructions there. It turns out in Terraform 0.13, the directory structure for local plugins has changed, see New Filesystem Layout for Local Copies of Providers. After following the new directory structure guidelines, the plugin loaded successfully.
Perhaps changes like the following would help clarify the process:
Requirements: Terraform has been successfully installed.
Download the latest compiled binary from GitHub Releases:
macOS: terraform-provider-rubrik-darwin-amd64
Linux: terraform-provider-rubrik-linux-amd64
Windows: terraform-provider-rubrik-windows-amd64.exe
Move the Rubrik provider into the correct Terraform plugin directory:
For Terraform 0.12 and earlier:
macOS: ~/.terraform.d/plugins/darwin_amd64
Linux: ~/.terraform.d/plugins/linux_amd64
Windows: %APPDATA%\terraform.d\plugins\windows_amd64
Note: You may need to create the plugins directory.
For Terraform 0.13 and later:
macOS: ~/.terraform.d/plugins/build.rubrik.com/rubrik/rubrik/1.04/darwin_amd64
Linux: ~/.terraform.d/plugins/build.rubrik.com/rubrik/rubrik/1.04/linux_amd64
Windows: %APPDATA%\terraform.d\plugins\build.rubrik.com\rubrik\rubrik\1.04\windows_amd64
Note: You may need to create the containing directory structure.
Rename the Rubrik provider to terraform-provider-rubrik_v1.0.4
Note: On Windows systems, ensure you keep the .exe file extension for the downloaded provider binary.
Run terraform init
in the directory that contains your Terraform configuration file, e.g. main.tf
.