From a27a59a69a1daacdeb75a4a507288a9b7099877e Mon Sep 17 00:00:00 2001 From: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com> Date: Tue, 1 Apr 2025 21:40:07 +0000 Subject: [PATCH 1/2] add prebuilt to parameters --- .../extending-templates/parameters.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/admin/templates/extending-templates/parameters.md b/docs/admin/templates/extending-templates/parameters.md index 4cb9e786d642e..c22ad70bcf1a7 100644 --- a/docs/admin/templates/extending-templates/parameters.md +++ b/docs/admin/templates/extending-templates/parameters.md @@ -370,6 +370,24 @@ data "coder_parameter" "jetbrains_ide" { +## Prebuilt workspaces + +Prebuilt workspaces expand on presets and allow you to provision a ready-to-deploy workspace with a defined set of parameters. + +You can use prebuilt workspaces to ensure that workspaces can be deployed within one minute. +Use the `prebuilds` parameter to define how many instances of the template should be stored as a prebuilt workspace. + +When a developer selects the associated template, the workspace will be assigned to that developer and the server will build a new prebuilt workspace. + +For example: + +```hcl +...(more example here) + prebuilds { + instances = 1 + } +``` + ## Create Autofill When the template doesn't specify default values, Coder may still autofill From 191680bacfe16f5f5d4fd24cc63da7e1437ae465 Mon Sep 17 00:00:00 2001 From: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com> Date: Thu, 10 Apr 2025 19:41:50 +0000 Subject: [PATCH 2/2] add qs to parameters doc --- docs/admin/templates/extending-templates/parameters.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/admin/templates/extending-templates/parameters.md b/docs/admin/templates/extending-templates/parameters.md index d1d35e25057f9..219c4639343a6 100644 --- a/docs/admin/templates/extending-templates/parameters.md +++ b/docs/admin/templates/extending-templates/parameters.md @@ -384,11 +384,16 @@ For example: ```hcl ...(more example here) - prebuilds { - instances = 1 + prebuilds { + instances = 1 } ``` +- How to update user-specific data/resources after its assigned? +- Can existing templates be updated? +- Schedule workspaces? +- Do pre-builds in the pool go stale? + ## Create Autofill When the template doesn't specify default values, Coder may still autofill