You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: [ERROR] Bootsrap mode activated. Token_key or access_key and secret_key can not be provided
│
│ with module.rancher2.provider["registry.terraform.io/rancher/rancher2"].bootstrap,
│ on ../../modules/rancher2/providers.tf line 7, in provider "rancher2":
│ 7: provider "rancher2" {
Expected Result
Ability to bootstrap rancher
I suspect there's some issue with token_key value in rancher2 module, as I am getting early failure when applying the plan. Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Rancher Server Setup
Information about the Cluster
User Information
Provider Information
Describe the bug
Unable to bootstrap rancher using terraform: [ERROR] Bootsrap mode activated. Token_key or access_key and secret_key can not be provided
To Reproduce
terraform apply
"""hcl
terraform {
required_version = ">= 1.9.0"
required_providers {
rancher2 = {
source = "rancher/rancher2"
version = ">=6.0"
}
}
}
provider "rancher2" {
alias = "bootstrap"
api_url = "https://whatever"
bootstrap = true
insecure = true
}
provider "rancher2" {
alias = "admin"
api_url = "https://whatever"
token_key = "whatever"
insecure = true
}
resource "rancher2_bootstrap" "admin" {
provider = rancher2.bootstrap
initial_password = "token"
password = "secret"
telemetry = true
}
"""
Actual Result
│ Error: [ERROR] Bootsrap mode activated. Token_key or access_key and secret_key can not be provided
│
│ with module.rancher2.provider["registry.terraform.io/rancher/rancher2"].bootstrap,
│ on ../../modules/rancher2/providers.tf line 7, in provider "rancher2":
│ 7: provider "rancher2" {
Expected Result
Ability to bootstrap rancher
I suspect there's some issue with token_key value in rancher2 module, as I am getting early failure when applying the plan. Am I doing something wrong?
The text was updated successfully, but these errors were encountered: