A wrapper around terraform state commands to provide guard rails
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.
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.
To install tfstate, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install tfstate
To see what files were installed by tfstate, run:
port contents tfstate
To later upgrade tfstate, run:
sudo port selfupdate && sudo port upgrade tfstate
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.