{
  "id": "terraform/terraform-apply-plan-changed",
  "signature": "Error: The plan output exceeds the maximum allowed size of 4 MB: the plan has been changed after it was saved",
  "signature_zh": "错误：计划输出超过最大允许大小 4 MB：计划在保存后已被更改",
  "regex": "The plan output exceeds the maximum allowed size of 4 MB",
  "domain": "terraform",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The saved plan file was modified or regenerated after creation, causing a checksum mismatch when applying.",
  "root_cause_type": "generic",
  "root_cause_zh": "保存的计划文件在创建后被修改或重新生成，导致应用时校验和不匹配。",
  "versions": [
    {
      "version": "Terraform v1.6",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Terraform v1.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Plan files are binary and checksummed; any manual edit will corrupt the file and cause a different error.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Terraform does not support incremental plans; each plan is a full snapshot, and splitting does not reduce total size.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "While this works, it bypasses the plan review process and may apply unintended changes.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Regenerate the plan with the same configuration and apply immediately: 'terraform plan -out=plan.tfplan && terraform apply plan.tfplan'.",
      "success_rate": 0.9,
      "how": "Regenerate the plan with the same configuration and apply immediately: 'terraform plan -out=plan.tfplan && terraform apply plan.tfplan'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use 'terraform apply' directly without a saved plan file to avoid the size limit issue.",
      "success_rate": 0.95,
      "how": "Use 'terraform apply' directly without a saved plan file to avoid the size limit issue.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Regenerate the plan with the same configuration and apply immediately: 'terraform plan -out=plan.tfplan && terraform apply plan.tfplan'.",
    "Use 'terraform apply' directly without a saved plan file to avoid the size limit issue."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.hashicorp.com/terraform/cli/commands/plan#plan-files",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}