terraform-provider-rancher2
terraform-provider-rancher2 copied to clipboard
Custom cluster creation using terraform returns invalid response
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 Can you provide more information on the issue and possible root cause?
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.