coder / terraform-provider-coderd

Manage a Coder deployment using Terraform
https://registry.terraform.io/providers/coder/coderd/latest/docs
Mozilla Public License 2.0
10 stars 2 forks source link

Should we propagate template plan errors to this provider #109

Closed stirby closed 2 months ago

stirby commented 2 months ago

A customer noticed that when the tf plan fails for a template, the coderd provider invoker fails without exposing the underlying template error.

Does it make sense to raise the Template error to our coderd provider? Otherwise, they have to debug the template in a separate context.

Template Error:

coder_ui_error

What the coderd provider invoker shows:

coderd_error
ethanndickson commented 2 months ago

The original intention was that users could stream logs from the provisioner by setting TF_LOG to info, but the UX there still kinda sucked. #95 now has the logs get dumped on error, which seems much better. It'll be in the release this week.

(I probably should've made a patch with it earlier, instead of holding off until the next Coder release)