Interview Prep/Terraform/Partial Applies, Version Mismatches and CI Failures

A teammate with Terraform 1.10 applied; now your 1.6 gets `state snapshot was created by Terraform v1.10.0, which is newer than current v1.6.6; upgrade to Terraform v1.10.0 or greater to work with this state`.

IntermediateTroubleshootingPartial Applies, Version Mismatches and CI Failures
Answer

Likely causes → Terraform records its version in state; older binaries refuse to read state written by newer ones (to avoid losing data they don't understand).

Diagnose → terraform state pull | jq -r .terraform_version (from a newer binary).

Fix → Upgrade your binary. Downgrading state isn't supported; restoring an older state version would lose changes.

Prevent → Upgrade Terraform as a team decision: bump required_version lower bound and CI image in one PR; nobody applies with a different version.

All Terraform questions

More on Partial Applies, Version Mismatches and CI Failures