Closed will-code-for-pizza closed 2 years ago
Did you follow the steps outlined in the readme page, under the Configuration section? You need to provide credentials using one of the two methods.
Hi Chris,
before I run
# terraform init
# terraform plan
I do a
# export TF_LOG_CORE=DEBUG; export TF_LOG_CORE=TRACE; export TF_LOG_PROVIDER=TRACE; export TF_LOG_PATH="logs.txt"; export TF_VAR_endpoint="http://139.1.x.x"; export TF_VAR_username="my-username"; export TF_VAR_password="my-password"; export TF_VAR_ssl_enabled="false"; export TF_VAR_ovdomain="my-domain"
and there a no missing variables, no prompts for input, etc.
Result:
│ Error: Error in response: Forbidden
│ Response Status: 403 Forbidden
│ Response Details: You are not allowed to access the requested resource.
│
│ with provider["registry.terraform.io/hewlettpackard/oneview"],
│ on main.tf line 31, in provider "oneview":
│ 31: provider "oneview" {
│
Cheers.
Solved: I struggled with a proxy-setting problem. Terraform ignores the 'no_proxy' env variable and the 'access denied' message was sent by proxy.
Many thanks!
It depends to https://github.com/HewlettPackard/terraform-provider-oneview/issues/127#issuecomment-521135041
no_proxy was ignored. NO_PROXY was used.
Hi,
I try to read all hardware servers via "oneview" provider. My credentials are correct and my user account in OneView has the role "Infrastructure administrator".
This is the result:
If I strip down the main.tf to
the result is
If I add these lines
the error occurs.
Is this an access rights problem in OneView ?
Regards and thanks in advance.