- Notifications
You must be signed in to change notification settings - Fork3
Description
When deploying a template via the coderd_template resource, the errors from the internal commands do not bubble up.
All I get is for example this:
╷│ Error: Client Error│ │ with coderd_template.templates["az-ps-function"],│ on templates.tf line 2, in resource "coderd_template" "templates":│ 2: resource "coderd_template" "templates" {│ │ failed to wait for job: provisioner job did not succeed: failed (template│ import provision for start: terraform plan: exit status 1)╵
I have to use debug mode in terraform to get the actual error, which is very cumbersome:2024-09-11T14:48:56.832Z [INFO] provider.terraform-provider-coderd_v0.0.4: A data resource "coder_parameter" "ado_projects" has not been declared in the root module.: job_stage="Detecting persistent resources" log_source=provisioner tf_req_id=6f199328-b1d4-3746-8d48-3cb8af035cfe job_id=10626 tf_provider_addr=registry.terraform.io/coder/coderd tf_resource_type=coderd_template @caller=github.com/coder/terraform-provider-coderd/internal/provider/template_resource.go:954 @module=coderd created_at=2024-09-11T14:48:56.783Z level=error tf_rpc=ApplyResourceChange timestamp=2024-09-11T14:48:56.832Z
It would be great if errors from the executed commands would be visible in the output.