moved Block Maps Resources in Wrong Direction
A moved block maps the from address to the to address. If the from and to are reversed, the state binds the wrong resources. The apply destroys the resources the state now points to.
← All break/fix scenarios in Terraform
A moved block maps the from address to the to address. If the from and to are reversed, the state binds the wrong resources. The apply destroys the resources the state now points to.
1. Do not apply. 2. Identify the wrong binding. 3. Reverse the moved block. 4. Re-plan. 5. Verify the plan is empty.
The resources are correctly bound, the plan is empty, and the incident is documented.
1. Test moved blocks in development. 2. Use terraform plan to verify the state binding. 3. Review the moved block direction.
A moved block maps the from address to the to address. If the from and to are reversed, the state binds the wrong resources. The apply destroys the resources the state now points to.