I'm using Terraform and accidentally changed the version in the state file from v0.11.14 to v1.0.10 while playing around with upgrading Terraform.
Initializing the backend...
Error:
Terraform doesn't allow running any operations against a state
that was written by a future Terraform version. The state is
reporting it is written by Terraform '1.0.10'
A newer version of Terraform is required to make changes to the current
workspace.
The state file is stored in AWS storage and is decrypted.
I read about solutions between minor versions but couldn't find a solution for downgrading from a major version back to v0.11.14 :(
I was under the impression that terraform init
won't touch the state file.