Interview practice question
Forcing a single resource to be recreated
Cloud & DevOps · Terraform and IaC · Intermediate
A virtual machine managed by Terraform is in a broken state, and you want Terraform to recreate just that one resource. How?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- terraform apply -replace=<address>.
- Plan shows replacement only for it.
- Replaces deprecated taint.
- Check dependants affected.
- Prefer fixing root cause.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.