Taint
Overview
Marks resources for recreation on the next apply, like terraform taint. When it finishes or you cancel, Esc returns you to the screen you came from.
Screenshot

Interactive (TUI)
Taint has no key on Home. Press t in State or Plan to taint the resource under the cursor, or press ! → t to taint every pinned resource.
Keybindings
| Key | Action | When |
|---|---|---|
y / Y / Enter |
Confirm taint | Confirming |
n / N / Esc |
Cancel | Confirming |
p |
Navigate to plan (not offered by standalone tfui taint, which has no Plan) |
Done |
ctrl+r |
Retry | Error |
Esc |
Back to the screen you came from | Idle, Done, Error |
Flow
Idle → Confirming → Loading → Done/Error
- tfui asks “Taint <address>? (will recreate on next apply)”, or lists every address for a batch.
- On
y, it runsterraform taintfor each address in turn. - When it finishes, the plan is marked stale: Plan re-plans the next time you open it.
Escreturns you to where you started;popens Plan instead.
Command Line (CLI)
tfui taint <address> # Taint single resource
tfui taint <addr1> <addr2> # Batch taint
With a terminal attached, tfui asks for confirmation; a headless run taints without asking.
Exit codes: see CLI I/O contract.
Equivalence
| Goal | CLI | TUI |
|---|---|---|
| Taint a resource | tfui taint <address> |
From state/plan: t → y |
| Batch taint | tfui taint <addr1> <addr2> |
Pin multiple → ! → t → y |
Related
- Untaint – reverse a taint operation
- State Browser – browse resources and taint from context
- Plan – see the effect of tainting (forced replacement)