I have a git repository with all my terraform declarations.
The latest tfstate file get's uploaded into a backend (Azure Blob Storage) when the pipeline runs.
My question is: Do I really need to keep old versions of the tfstate file for restore options?
Because I think that whenever terraform apply in the pipeline would fail, I could just rollback my code to the last working version and run the pipeline again to run plan and apply, right?
In this case I don't understand what the differences are between my code declarations in my repo and the tfstate file are. Always assuming, that changes in the cloud provider only do happen via terraform.
Thanks