From aac94179e54bdaca48818b62e97789e0d5385f2e Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Wed, 28 Aug 2024 04:23:33 +0000 Subject: [PATCH] docs: add how to log template provisioner output --- docs/resources/template.md | 7 +++++-- internal/provider/template_resource.go | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/resources/template.md b/docs/resources/template.md index 4077d55..03af184 100644 --- a/docs/resources/template.md +++ b/docs/resources/template.md @@ -3,12 +3,15 @@ page_title: "coderd_template Resource - terraform-provider-coderd" subcategory: "" description: |- - A Coder template + A Coder template. + Logs from building template versions are streamed from the provisioner when the TF_LOG environment variable is INFO or higher. --- # coderd_template (Resource) -A Coder template +A Coder template. + +Logs from building template versions are streamed from the provisioner when the `TF_LOG` environment variable is `INFO` or higher. ## Example Usage diff --git a/internal/provider/template_resource.go b/internal/provider/template_resource.go index 3bdde6d..57c60a9 100644 --- a/internal/provider/template_resource.go +++ b/internal/provider/template_resource.go @@ -229,7 +229,8 @@ func (r *TemplateResource) Metadata(ctx context.Context, req resource.MetadataRe func (r *TemplateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "A Coder template", + MarkdownDescription: "A Coder template.\n\nLogs from building template versions are streamed from the provisioner " + + "when the `TF_LOG` environment variable is `INFO` or higher.", Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy