I am new to terraform. Now we are planning to use terraform to rebuild our infrastrucure on AWS. We are running kubernetes clusters managed with rancher on AWS. We have one k8s cluster that was built with RKE, which also hosts rancher, and a couple of other kubernetes clusters that was created by rancher.
There are two external modules that might be helpful: RKE provider and rancher2 provider.
The goal is to manage everything with terraform. I can build a kubernetes cluster with terraform RKE provider. My question is how do I install rancher on it, and how do I use rancher to create other k8s clusters in teraform?