github oocx/tfplan2md v1.49.1

2 hours ago

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 ⏏️ Forget summary row: Resources with "actions": ["forget"] now appear in a dedicated ⏏️ Forget row 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 a Before / After diff 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, and docs/architecture.md to document ⏏️ Forget semantics, *Removed from state* headings, callouts, and SummaryModel.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:

Summary table showing Forget row separate from Destroy

A forgotten resource displays *Removed from state*, the non-destruction callout, and a two-column prior-state attribute table:

Forgotten terraform_data resource rendered as Removed from state

🔗 Commits

  • 1d2fe056 fix: render forget action separately from destroy

Don't miss a new tfplan2md release

NewReleases is sending notifications on new releases.