terraform/terraform-untaint

Unmark Resource

Remove taint from a resource

terraform
untaint
resource

Command

terraform untaint aws_instance.my_instance

Explanation

Removes the taint mark from a resource so it will not be destroyed. Useful if a taint was applied accidentally.

Examples

Remove taint from DB instance

terraform untaint module.db.aws_db_instance.main