Introduction
When your Terraform code is making calls to another state configuration (for example using terraform_remote_state
Data Source) you can hit the following error:
state snapshot was created by Terraform vX.X.X, which is newer than current vX.X.X; upgrade to Terraform vX.X.X or greater to work with this state
Use Case
A change in Terraform version 0.11.14, 0.12.30, 0.13.6, 0.14.2 was introduced so the provider's "terraform_remote_state" data source no longer enforces Terraform version checks on the remote state file. To read more about it follow this link.
Solution
Check you current Terraform version with the following command:
terraform -v
If your version is older than 0.11.14, 0.12.30, 0.13.6, 0.14.2, please update to the latest version of terraform to resolve this situation.
Additional Information
If you are unable to resolve the issue please contact support at tf-cloud@hashicorp.support or submit a ticket via our support portal.