Resolve Terraform Unsupported State File Format in Git Bash on Windows - DevPops-Inc/windows GitHub Wiki

• The following resolution is for if you receive the unsupported state file format error when trying to run terraform init.
image

• Type ls and press the “Enter” key to list contents of the directory. Look for the tfstate files.
image

• Type rm < state file >.tfstate < state file >.tfstate.backup and press the “Enter” key to delete the state files.
image

• Type terraform init and press the “Enter” key to initialize Terraform without any errors this time around.
image