Process Flow - Terraform taint and untaint (deprecated)
Start
Identify resource
Run 'terraform taint'
Mark resource as tainted
terraform apply
Resource destroyed and recreated
If needed, run 'terraform untaint'
Remove taint mark
terraform apply
Resource left unchanged
End
This flow shows how marking a resource as tainted forces its recreation on next apply, and untainting removes that mark to keep it unchanged.