Terraform
terraform apply -replace (formerly taint)
Appears inTerraform Associate
A mechanism to force the destruction and recreation of a specific resource on the next apply, useful when a resource is in an inconsistent state that a normal configuration change won't fix.
On the exam
In Terraform Associate the tested evolution is: terraform taint (deprecated since v0.15.2) marked the resource in the state; the modern approach is terraform apply -replace=<address>, which achieves the same effect without a separate prior command.
Related terms
- Terraform ApplyA command that applies the changes from the execution plan, creating, modifying, or destroying resources in the provider. It asks for interactive confirmation unless -auto-approve is used.
- Terraform PlanA command that generates and displays an execution plan without applying any changes. It compares the desired configuration with the current state and shows which resources will be created, modified, or destroyed.