tfui latest

Blast Radius

Overview

The Blast Radius plugin groups plan changes by terraform module and calculates an impact score for each group. Impact is derived from the number of changes, risk levels, and whether destructive operations are involved. Modules are sorted highest-impact first, giving you a quick overview of which parts of your infrastructure are most affected.

Screenshot

Blast Radius

Impact score

Score Criteria
critical Any change with critical risk
high Any change with high risk, or 3+ changes in the module with at least one delete or replace
moderate 3+ changes, or any change with medium risk
minimal Fewer than 3 changes, none above low risk

Interactive (TUI)

Press B to open the Blast Radius view. It requires a completed plan to analyze. The view shows:

  1. Summary line – the highest module impact, the number of modules affected and the total changes
  2. Module rows – one per module, each with its change count, impact badge and add/change/destroy/replace counts
  3. Expanded module – Enter lists the module’s changes with their risk badges

When the assessment is unusable, the summary line reads Blast radius unavailable: incomplete risk assessment followed by the error code in parentheses: the assessment’s own code, else the code of the first failed change. A hint from the host for that code, such as how to recover from source_changed, appears on the line below. Ctrl+r requests the assessment again.

Keybindings

Key Action When
j / k Navigate up/down List
Enter / i Expand/collapse module changes List
← / → Scroll the list horizontally when wrapping is off List
Ctrl+w Toggle wrapping List
Ctrl+r Request the assessment again for the same plan Cancelled or unusable assessment
Esc Back to Home Always
q Back to Home Always

Flow

Home ──B──→ Blast Radius (loading) ──→ Blast Radius (list)
                  │                         │
                  │                         ├── Enter/i → Expand module changes
                  │                         └── Esc / q → Home
                  ├── Esc → Home (cancels the request)
                  │
                  └──→ Blast Radius (error: cancelled or unusable assessment)
                          ├── Ctrl+r → Blast Radius (loading)   (request again)
                          └── Esc → Home

Command Line (CLI)

Blast Radius is an analysis view within the TUI. It has no CLI command of its own.

terraform’s -json document carries a module_address on each resource change inside a module; root-module changes have none. Group by it to rebuild the view:

tfui plan -project ./infra -json

Equivalence

Goal CLI TUI
See module-level impact tfui plan -json (group by module_address) Press B
Drill into module changes tfui plan -json \| jq B → expand module

Edit this page on GitHub