Rollback to previous terraform statefile version

Hi,

Recently I had an issue with Terraform where the statefile had all resources removed but these resources were maintained in the environment.

In this case I could import all the TF resources which would be very time consuming or rollback to the previous statefile.

I wanted to try to push the previous statefile version into Gitlab TF to create a new version on that and then rerun the TF plan to verify if the config drifting issue would disappear, but couldn’t find a way to do that.

I can download specific statefile versions, but not push new ones to remote.

I know that this is possible when using a cloud provider storage solution like Cloud Storage or S3 and I was wondering if this is possible on Gitlab?

Being possible to do this might be useful in cases like this.