tfui latest

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

Taint

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
  1. tfui asks “Taint <address>? (will recreate on next apply)”, or lists every address for a batch.
  2. On y, it runs terraform taint for each address in turn.
  3. When it finishes, the plan is marked stale: Plan re-plans the next time you open it. Esc returns you to where you started; p opens 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
  • Untaint – reverse a taint operation
  • State Browser – browse resources and taint from context
  • Plan – see the effect of tainting (forced replacement)

Edit this page on GitHub