Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When you do a Terraform build of a workspace, and a resource has drifted, our Terraform logs don't show which specific fields have drifted, so it can be hard to debug templates that unintentionally recreate resources. This can slow builds down or cause unintentional data loss!
Relevant Log Output
coder_agent.dev: Refreshing state... [id=035a3997-8b46-48f3-8fe8-e0529e89f429]
coder_agent.dev: Refresh complete [id=035a3997-8b46-48f3-8fe8-e0529e89f429]
...
coder_agent.dev: Drift detected (update)
coder_agent.dev: Plan to replace
Expected Behavior
Logs should show which specific attributes of the resource have drifted.
Steps to Reproduce
You can see this for just about any Coder build since the coder_agent
resource always drifts.
Environment
- Host OS:
- Coder version:
Additional Context
No response