tfstate is a wrapper around Terraform state commands which alter the state file, such as `terraform state mv` and `terraform state rm`. tfstate automatically generates a backup inside `.terraform/tfstate/*`, allowing for easy rollback if a mistake was made. This is possible due to the wrapper, by first performming a backup of the current state file, then running `tfstate rollback --latest`. tfstate adds a manual confirmation step, which also lists the possible resources affected by the requested state command.

WWW: https://github.com/alex067/tfstate
