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

+5-2
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

+2-1
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)