{
  "id": "terraform/state-version-mismatch-major-upgrade",
  "signature": "Error: state snapshot was created by Terraform v1.6, which is newer than current v1.5",
  "signature_zh": "错误：状态快照由 Terraform v1.6 创建，比当前 v1.5 更新",
  "regex": "Error: state snapshot was created by Terraform v\\d+\\.\\d+, which is newer than current v\\d+\\.\\d+",
  "domain": "terraform",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The Terraform state file was written by a newer version of Terraform (v1.6) and cannot be read by the older version (v1.5) due to incompatible state format changes.",
  "root_cause_type": "generic",
  "root_cause_zh": "Terraform 状态文件由较新版本的 Terraform（v1.6）写入，无法被较旧版本（v1.5）读取，因为状态格式不兼容。",
  "versions": [
    {
      "version": "Terraform v1.5.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Terraform does not support backward state compatibility. Once state is written by a newer version, older versions cannot parse it.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The state format is not just a version number; the internal serialization changed. Editing the version field corrupts the state and may cause data loss.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade the local Terraform version to match or exceed the version that wrote the state: install Terraform v1.6 or later via `tfenv install 1.6.0 && tfenv use 1.6.0`",
      "success_rate": 1.0,
      "how": "Upgrade the local Terraform version to match or exceed the version that wrote the state: install Terraform v1.6 or later via `tfenv install 1.6.0 && tfenv use 1.6.0`",
      "condition": "",
      "sources": []
    },
    {
      "action": "If you must use an older version, restore a state backup from before the newer version was used (if available): `aws s3 cp s3://bucket/terraform.tfstate.backup terraform.tfstate`",
      "success_rate": 0.7,
      "how": "If you must use an older version, restore a state backup from before the newer version was used (if available): `aws s3 cp s3://bucket/terraform.tfstate.backup terraform.tfstate`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Upgrade the local Terraform version to match or exceed the version that wrote the state: install Terraform v1.6 or later via `tfenv install 1.6.0 && tfenv use 1.6.0`",
    "If you must use an older version, restore a state backup from before the newer version was used (if available): `aws s3 cp s3://bucket/terraform.tfstate.backup terraform.tfstate`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.hashicorp.com/terraform/language/state/backends",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2024-06-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}