# 错误：计划输出超过最大允许大小 4 MB：计划在保存后已被更改

- **ID:** `terraform/terraform-apply-plan-changed`
- **领域:** terraform
- **类别:** build_error
- **验证级别:** ai_generated
- **修复率:** 90%

## 根因

保存的计划文件在创建后被修改或重新生成，导致应用时校验和不匹配。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Terraform v1.6 | active | — | — |
| Terraform v1.7 | active | — | — |
| Terraform v1.8 | active | — | — |

## 解决方案

1. ```
   Regenerate the plan with the same configuration and apply immediately: 'terraform plan -out=plan.tfplan && terraform apply plan.tfplan'.
   ```
2. ```
   Use 'terraform apply' directly without a saved plan file to avoid the size limit issue.
   ```

## 无效尝试

- **** — Plan files are binary and checksummed; any manual edit will corrupt the file and cause a different error. (95% 失败率)
- **** — Terraform does not support incremental plans; each plan is a full snapshot, and splitting does not reduce total size. (80% 失败率)
- **** — While this works, it bypasses the plan review process and may apply unintended changes. (30% 失败率)
