🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)118 / 150
Question 118 of 150

A web server EC2 instance managed by Terraform has become corrupted after a failed manual patch. The configuration itself is correct and unchanged, but you want Terraform to destroy and recreate this single resource on the next apply without altering any other infrastructure. Which approach uses the current, recommended Terraform command to accomplish this?

Reviewed for accuracy · Report an issueNext question