LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

terraform-untaint

Remove the tainted status from a Terraform resource instance

TLDR

Remove taint from a resource so it will not be replaced
$ terraform untaint aws_instance.example
copy
Untaint even if missing from state
$ terraform untaint -allow-missing module.foo.resource.bar
copy
Untaint without acquiring state lock
$ terraform untaint -lock=false aws_instance.example
copy

SYNOPSIS

terraform untaint [options] address

DESCRIPTION

terraform untaint clears the tainted flag from a resource instance in the state file. The resource will be treated normally on the next apply (no forced replacement). It does not modify remote infrastructure—only state.Like `terraform taint`, this command is deprecated in favor of more explicit mechanisms such as `-replace` on apply.

PARAMETERS

-allow-missing

Succeed even if the address does not exist in state.
-lock=true|false
Control state locking (default true). Use `-lock=false` to disable.
-lock-timeout=duration
How long to wait for a lock (e.g. `3s`).
-no-color
Disable terminal color sequences in output.

INSTALL

sudo pacman -S terraform
copy
nix profile install nixpkgs#terraform
copy

CAVEATS

Deprecated. Prefer `terraform apply -replace=...` when you need to force replacement. Untaint only removes the state marker; it does not repair remote objects.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid