This is an extension based on https://github.com/antonputra work
EKS Cluster using Terraform MODULES (AWS Load Balancer Controller + Autoscaler + IRSA + CastAI + Rancher)
cd terraform/
terraform int
terraform plan
terraform apply
cd ..
aws eks update-kubeconfig --region ap-northeast-2 --name cluster2
curl -H "Authorization: Token XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" "https://api.cast.ai/v1/agent.yaml?provider=eks" | kubectl apply -f -
https://console.cast.ai/dashboard
scripts/helm-rancher-gen-cert.sh
kubectl apply -f k8s/arn-service-4rancher.yaml
https://rancher.your_domain_name.com/dashboard/
You can find tutorial here.