We store our terraform projects in gitlab and states with a gitlab backend. Someone deleted the state. We recovered the state to a json file via shapshot of our gluster backend. How do I restore the state to gitlab? i’ve got the state i want to recover in a json file.
I’ve tried following this link with no success.
I’ve also seen a post about using the ‘Copy terraform init command’ from the project state page on gitlab and running
terraform state push /path/to/terraform.tfstate -force
and this didnt work. I’m doing this from a workstation that does not have a copy of the config files, just the recovered json file.
Any guidance would be greatly appreciated.