What does this block prevent on the next apply?
moved {
from = aws_instance.web
to = aws_instance.app
}
- Drift detection on that resource
- Any later change to its tags
- A destroy-and-recreate of it
- A second import of the instance
Renaming a resource address would normally plan a destroy and create; moved tells Terraform to update the state address instead.
Play DevOps ▸