mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
feat(provisioner/terraform): log resource replacement details Log compact Terraform resource replacement warnings for non-prebuild claim builds. The warnings include Terraform-reported replacement paths and before/after values when Terraform does not mark the value, or a descendant of the value, sensitive. Preserve Terraform sensitivity and unknown handling, and fall back to path-only or pathless messages when value details are unavailable. Prebuild claims continue using the existing full drift log path, including for pathless replacement actions that were previously skipped. Continue sending PlanComplete.ResourceReplacements only when Terraform reports replacement paths. Ref: https://linear.app/codercom/issue/PLAT-135/bug-build-terraform-logs-dont-include-which-fields-have-changed Ref: https://github.com/coder/coder/issues/16999