Release Notes: Render forget Actions Separately from destroy
Resources removed from Terraform state with a removed block and lifecycle { destroy = false } emit "actions": ["forget"] in the Terraform plan JSON. tfplan2md previously grouped those resources into ❌ Destroy and rendered two-column Before / After diffs pointing to -, making state-only removals look like infrastructure deletions (GitHub issue #673).
This release separates forget from destroy across the summary table, resource headings, callouts, attribute tables, and provider-specific renderers.
🐛 Fixes
- Separate
⏏️ Forgetsummary row: Resources with"actions": ["forget"]now appear in a dedicated⏏️ Forgetrow in the Summary table (still included in Total) instead of being counted under❌ Destroy. - Distinct state-removal heading and callout: Forgotten resources render with
⏏️and*Removed from state*in their<summary>line, followed by the callout> ⏏️ This resource will no longer be managed by Terraform, but will not be destroyed. - Prior-state attribute table: Default resource details render a two-column
| Attribute | Value |table showing prior state (before) rather than aBefore/Afterdiff ending in-. Tags and display identities are preserved from prior state. - Parent-child and provider renderer parity: Inline child tables (such as VNet subnets and NSG security rules) show
⏏️instead of❌, and AzApi, AzureRM (including role assignments and firewall rule collections), and Azure DevOps renderers use prior state and(removed from state)headings instead of(being deleted). - Replacement preservation: Compound
["create", "forget"]/["forget", "create"]actions continue to render as♻️ Replace.
📚 Docs
- Updated
docs/features.md,docs/report-style-guide.md, anddocs/architecture.mdto document⏏️ Forgetsemantics,*Removed from state*headings, callouts, andSummaryModel.ToForget.
▶️ Getting started
No new flags or configuration are required. Upgrade to v1.49.1 (or :latest) and run tfplan2md as usual:
terraform show -json plan.tfplan | docker run -i oocx/tfplan2md:latest > plan.md📸 Screenshots
The summary table counts forget resources in their own ⏏️ Forget row separate from ❌ Destroy:
A forgotten resource displays *Removed from state*, the non-destruction callout, and a two-column prior-state attribute table:
🔗 Commits
1d2fe056fix: render forget action separately from destroy

