Skip to content

bug: build terraform logs don't include which fields have changed #16999

@spikecurtis

Description

@spikecurtis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedBugs reported by enterprise customers. Only humans may set this.s2Broken use cases or features (with a workaround). Only humans may set this.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions