I tried running the AWS quickstart. not marketplace, I renamed and edited the .tfvars file accordingly.
However, when I call terraform apply --auto-approve it fails with the following error message:
Error:
....
Plan: 20 to add, 0 to change, 0 to destroy.
Changes to Outputs:
rancher_node_ip = (known after apply)
rancher_server_url = (known after apply)
workload_node_ip = (known after apply)
tls_private_key.global_key: Creating...
tls_private_key.global_key: Creation complete after 1s [id=1d674b47245a21a793cf48b2d6ca7cbccbd612c8]
local_sensitive_file.ssh_private_key_pem: Creating...
local_file.ssh_public_key_openssh: Creating...
local_sensitive_file.ssh_private_key_pem: Creation complete after 0s [id=a32656e1e84a665af028e8624ced239af4503c68]
local_file.ssh_public_key_openssh: Creation complete after 0s [id=562a4ca5c9e27f5c96146ee55ce8aa407504057b]
aws_vpc.rancher_vpc: Creating...
...
module.rancher_common.helm_release.rancher_server: Still creating... [1m10s elapsed]
module.rancher_common.helm_release.rancher_server: Still creating... [1m20s elapsed]
module.rancher_common.helm_release.rancher_server: Still creating... [1m30s elapsed]
module.rancher_common.helm_release.rancher_server: Creation complete after 1m37s [id=rancher]
module.rancher_common.rancher2_bootstrap.admin: Creating...
module.rancher_common.rancher2_bootstrap.admin: Still creating... [10s elapsed]
╷
│ Error: [ERROR] Updating token: [ERROR] Listing RKE K8s System Images: Bad response statusCode [401]. Status [401 Unauthorized]. Body: [message=Unauthorized 401: must authenticate] from [https://rancher.54.162.104.241.sslip.io/v3/rkek8ssystemimages]
│
│ with module.rancher_common.rancher2_bootstrap.admin,
│ on ../rancher-common/rancher.tf line 4, in resource "rancher2_bootstrap" "admin":
│ 4: resource "rancher2_bootstrap" "admin" {
│
Hi,
I tried running the AWS quickstart. not marketplace, I renamed and edited the .tfvars file accordingly. However, when I call terraform apply --auto-approve it fails with the following error message:
Error: ....
Plan: 20 to add, 0 to change, 0 to destroy.
Changes to Outputs:
### File mentioned in error:
[cloudshell-user@ip-10-4-170-188 aws]$ cat -n ../rancher-common/rancher.tf 1 # Rancher resources 2 3 # Initialize Rancher server 4 resource "rancher2_bootstrap" "admin" { 5 depends_on = [ 6 helm_release.rancher_server 7 ] 8 9 provider = rancher2.bootstrap 10 11 password = var.admin_password 12 telemetry = true 13 }
ADmin password is added in .tfvars before execution:
I am thinking maybe password is not passed correctly from tfvars ? Just guessing, not expert on terraform
Thank you for any help