{
  "id": "terraform/plan-output-too-large",
  "signature": "Error: The plan output exceeds the maximum allowed size of 4 MB",
  "signature_zh": "错误：计划输出超过最大允许大小 4 MB",
  "regex": "plan output exceeds the maximum allowed size",
  "domain": "terraform",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The Terraform plan file is too large due to many resources or large state data, exceeding the 4 MB limit for plan serialization.",
  "root_cause_type": "generic",
  "root_cause_zh": "由于资源过多或状态数据过大，Terraform 计划文件超过 4 MB 的计划序列化限制。",
  "versions": [
    {
      "version": "1.6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Increasing the timeout or retrying the plan does not reduce the plan size.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Splitting the configuration into multiple workspaces without reducing resource count still results in large plans.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Reduce the number of resources in a single plan by using Terraform modules or splitting into separate configurations. For example, break a large VPC setup into smaller modules.",
      "success_rate": 0.85,
      "how": "Reduce the number of resources in a single plan by using Terraform modules or splitting into separate configurations. For example, break a large VPC setup into smaller modules.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use 'terraform plan -out=plan.tfplan' and then 'terraform show plan.tfplan' to view the plan, instead of relying on the full output.",
      "success_rate": 0.9,
      "how": "Use 'terraform plan -out=plan.tfplan' and then 'terraform show plan.tfplan' to view the plan, instead of relying on the full output.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "通过使用 Terraform 模块或拆分为单独的配置来减少单个计划中的资源数量。例如，将大型 VPC 设置拆分为较小的模块。",
    "使用 'terraform plan -out=plan.tfplan' 然后 'terraform show plan.tfplan' 查看计划，而不是依赖完整输出。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.hashicorp.com/terraform/cli/commands/plan",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.8,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-01-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}