Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: [ERROR] No token_key nor access_key and secret_key are provided
│
│ with provider["registry.terraform.io/rancher/rancher2"],
│ on providers.tf line 21, in provider "rancher2":
│ 21: provider "rancher2" {
Expected Result
Tested with the same credentials passed as variables to access_key and secret_key works as expected, planning and applying configuration successfully.
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
Providing credentials to the provider via
RANCHER_ACCESS_KEY
andRANCHER_SECRET_KEY
per the provider docs results in a error while planning:To Reproduce
Tested locally like this:
Actual Result
Expected Result
Tested with the same credentials passed as variables to
access_key
andsecret_key
works as expected, planning and applying configuration successfully.