rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
253 stars 216 forks source link

[RFE] Create an `rancher2_etcd_restore` that allows restoring an RKE1 downstream cluster's backup created using `rancher2_etcd_backup` #1292

Open markusewalker opened 5 months ago

markusewalker commented 5 months ago

Is your feature request related to a problem? Please describe.

Following the bug filed here for rancher2_etcd_backup not properly populating the Kubernetes version, there is no resource block to restore an etcd snapshot using this method. You have to manually restore a snapshot within Rancher.

RKE2/K3S do not have this issue as they have resource blocks to both create a snapshot and restore the snapshot. I would expect this same workflow in RKE1, but as of now it does not exist.

Describe the solution you'd like

There should be a resource block that allows for restoring an etcd backup that you created using the rancher2_etcd_backup resource block. An example could be rancher2_etcd_restore or whatever is more appropriate for restoring RKE1 downstream cluster snapshots.