terraform-provider-rancher2 icon indicating copy to clipboard operation
terraform-provider-rancher2 copied to clipboard

Custom cluster creation using terraform returns invalid response

Open paynejacob opened this issue 3 years ago • 1 comments

Error: Invalid index

  on ../../modules/rancher/outputs.tf line 3, in output "rancher_join_command":
   3:   value = var.is_mgmt_cluster == false ? "\"${rancher2_cluster.rancher-cluster[0].cluster_registration_token.0.node_command}\"" : "NA"
    |----------------
    | rancher2_cluster.rancher-cluster[0].cluster_registration_token is empty list of object

The given key does not identify an element in this collection value.

SURE-4293

paynejacob avatar May 20 '22 21:05 paynejacob

@paynejacob Can you provide more information on the issue and possible root cause?

jakefhyde avatar May 27 '22 18:05 jakefhyde

Customer was seeing the same issue on both 2.6.3 and 2.6.4, but @ryanelliottsmith was unable to repro in his lab env and thinks it could be load related. Customer has since migrated to imported clusters and is no longer having an issue. This can be closed now.

a-blender avatar Oct 10 '22 16:10 a-blender