We store our 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 tried following this link with no success.
https://docs.gitlab.com/17.6/ee/user/infrastructure/iac/terraform_state.html
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.
Any guidance would be greatly appreciated.
terraform state push [options] PATH" Your order looks reversedterraform state push PATH [options]