The terraform taint command
Learn how to taint a resource in the state using terraform taint command.
We'll cover the following...
We'll cover the following...
What is terraform taint command?
The terraform taint command taints a resource in the state. Terraform will destroy and re-create the resource the next time the configuration is applied.
Running terraform taint on its own won’t destroy the resource immediately; it simply edits the state. Running terraform plan on the root module taints a resource that will be re-created on the next execution of terraform apply. Running terraform apply executes the plan, destroys the resource, and then re-creates it.
Syntax
The terraform taint command has the syntax terraform taint [options] <address>.
Arguments
The <address> argument refers to ...