-
Notifications
You must be signed in to change notification settings - Fork 23
Labels
docsImprovements or additions to documentationImprovements or additions to documentation
Description
In coder/coder#13122 a user sees empty values when referencing ${data.coder_workspace.me.template_id}
in their template. This happens because their coder server version is behind the provider, and this kind of issue will continue to appear as we implement more provider functionality (#220, #219).
There are two things we should do to fix this:
-
In our docs under each attribute and resource, declare the Coder version requirements
-
Replace code like:
terraform-provider-coder/provider/workspace.go
Lines 83 to 90 in 3cc9802
templateID := os.Getenv("CODER_WORKSPACE_TEMPLATE_ID") _ = rd.Set("template_id", templateID) templateName := os.Getenv("CODER_WORKSPACE_TEMPLATE_NAME") _ = rd.Set("template_name", templateName) templateVersion := os.Getenv("CODER_WORKSPACE_TEMPLATE_VERSION") _ = rd.Set("template_version", templateVersion)
with LookupEnv
and fail the build when a value is missing instead of using blanks.
matifali
Metadata
Metadata
Assignees
Labels
docsImprovements or additions to documentationImprovements or additions to documentation