rubrikinc/terraform-provider-rubrik

Current installation instructions don't work

DamaniN opened this issue · 1 comments

Expected Behavior

Installing the provider should work when using the current documentation.

Current Behavior

Running as module that calls the provider fails.

Failure Information (for bugs)

The following error occurs when running the provider with the current instructions:

Error: Failed to query available provider packages

│
│ Could not retrieve the list of available versions for provider rubrikinc/rubrik/rubrik: could not connect to rubrikinc: Failed to request discovery document: Get
│ https://rubrikinc/.well-known/terraform.json: dial tcp: lookup rubrikinc on [<redacted>:53](http://<redacted>:53/): no such host

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  • Install the provider as documented

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • v2.1 of the provider.
  • Linux

*** Workaround ***

The following steps were used to work around this issue:

I had to do the following:


Install the Terraform provider locally in: $HOME/.terraform.d/plugins/rubrikinc/rubrik/rubrik/2.1/linux_amd64

$ ls -ltr /home/ec2-user/.terraform.d/plugins/rubrikinc/rubrik/rubrik/2.1/linux_amd64/terraform-provider-rubrik
-rwxr-xr-x. 1 ec2-user ec2-user 21278500 Feb 11 00:07 /home/ec2-user/.terraform.d/plugins/rubrikinc/rubrik/rubrik/2.1/linux_amd64/terraform-provider-rubrik

 

Note that this is different to your documentation, the difference is:

Working:            $HOME/.terraform.d/plugins/rubrikinc/rubrik/rubrik/2.1

Documented:    $HOME/.terraform.d/plugins/[build.rubrik.com](http://build.rubrik.com/)/rubrik/rubrik/2.1

 

Make the locally installed plugin executable, there’s no mention of that in the documentation :

chmod 755 $HOME/.terraform.d/plugins/rubrikinc/rubrik/rubrik/2.1/linux_amd64

Fixed by ec45ac7 in #75