How to get kubecontext for RKE/Rancher on AWS

hi
We installing RKE/Rancher on AWS. But I`m then installing ArgoCD/ Istio etc into the cluster.

Now before we can do this, with the Terraform Helm Provider, how can I get the Rancher cluster details?

This is an example of a provider for AWS EKS, but how do we do it for AWS RKE/Rancher?

provider “kubernetes” {
host = var.cluster_name
cluster_ca_certificate = base64decode(var.cluster_ca_cert)
exec {
api_version = “client.authentication.k8s.io/v1beta1
args = [“eks”, “get-token”, “–cluster-name”, var.cluster_name]
command = “aws”
}
}

Any help would be appreciated.

thanks sanjay