Terraform State Version Mismatch

667 views
Skip to first unread message

Tim Burke

unread,
Jun 7, 2019, 10:50:17 AM6/7/19
to Terraform
Is there any way to fix a state file that's been updated to a later minor version for use with the earlier minor version on another system? I had Gitlab pipeline running TF the latest container which is version 0.11.13 with state being stored remotely in an Azure storage account.  In order to work on some code locally on my laptop I grabbed TF version 0.11.14 and used it to test my code before pushing it into gitlab.  Now when gitlab pipeline runs I get an error:

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 '0.11.14'

Please run at least that version of Terraform to continue.

Is there any way to rebuild this state file so it can be used with version 0.11.13?

⁞ Fernando Miguel

unread,
Jun 7, 2019, 11:02:40 AM6/7/19
to terrafo...@googlegroups.com
the recommendation is to store the statefile with a multiversion, like AWS S3 does.

Can you not update your CI to 0.11.14?
-- 


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/645f2d04-ce3e-46bd-bd07-2e2863608441%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages