Hi, is it possible to create an imported generic c...
# discuss-terraform
w
Hi, is it possible to create an imported generic cluster with terraform? I created a default v2 cluster but I don't get any access to the import command in the UI but only cmd to register a new node.
b
I haven't done this yet, but my understanding is that importing a cluster is done with the rancher2_cluster resource (as opposed to the rancher2_cluster_v2 resource)
Sorry I don't have better information on that, it is on my list of stuff to get to. Importing clusters in Terraform is a common use case and I intend to get a working example up as soon as I can.
🆗 1
w
I would appreciate if we can came up with an example. Will the rancher2_cluster resource remain in the provider? My understanding was it's getting deprecated in favor of the new rancher api.
b
I don't have any word on that resource being deprecated, although it is possible, that is all up to the Rancher API team.
There is a lot of change coming to the Rancher2 provider. 1. A new testing suite using Terratest that deploys Rancher on AWS and tests real world example infrastructures. 2. Upgrading the provider to the Terraform provider framework (we are currently on SDKv1) 3. Implementing the Rancher API (this will happen organically as the APIs are released)
👍 2
c
Thanks for the heads up Matt, do you know when that's coming out?
b
The groundwork for #1 has been merged into master. I am refining the tests to make them more reliable and will then add them to CI. This will most likely include a new release process where we don't release from the master branch directly.
🙌 1