Skip to content

Commit 4d366f7

Browse files
docs: add how to log template provisioner output (#82)
1 parent ed773f5 commit 4d366f7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/resources/template.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
page_title: "coderd_template Resource - terraform-provider-coderd"
44
subcategory: ""
55
description: |-
6-
A Coder template
6+
A Coder template.
7+
Logs from building template versions are streamed from the provisioner when the TF_LOG environment variable is INFO or higher.
78
---
89

910
# coderd_template (Resource)
1011

11-
A Coder template
12+
A Coder template.
13+
14+
Logs from building template versions are streamed from the provisioner when the `TF_LOG` environment variable is `INFO` or higher.
1215

1316
## Example Usage
1417

internal/provider/template_resource.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ func (r *TemplateResource) Metadata(ctx context.Context, req resource.MetadataRe
229229

230230
func (r *TemplateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
231231
resp.Schema = schema.Schema{
232-
MarkdownDescription: "A Coder template",
232+
MarkdownDescription: "A Coder template.\n\nLogs from building template versions are streamed from the provisioner " +
233+
"when the `TF_LOG` environment variable is `INFO` or higher.",
233234

234235
Attributes: map[string]schema.Attribute{
235236
"id": schema.StringAttribute{

0 commit comments

Comments
 (0)
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