Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a27a59a

Browse files
committed
add prebuilt to parameters
1 parent fd24116 commit a27a59a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/admin/templates/extending-templates/parameters.md

+18
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,24 @@ data "coder_parameter" "jetbrains_ide" {
370370
371371
</details>
372372
373+
## Prebuilt workspaces
374+
375+
Prebuilt workspaces expand on presets and allow you to provision a ready-to-deploy workspace with a defined set of parameters.
376+
377+
You can use prebuilt workspaces to ensure that workspaces can be deployed within one minute.
378+
Use the `prebuilds` parameter to define how many instances of the template should be stored as a prebuilt workspace.
379+
380+
When a developer selects the associated template, the workspace will be assigned to that developer and the server will build a new prebuilt workspace.
381+
382+
For example:
383+
384+
```hcl
385+
...(more example here)
386+
prebuilds {
387+
instances = 1
388+
}
389+
```
390+
373391
## Create Autofill
374392
375393
When the template doesn't specify default values, Coder may still autofill

0 commit comments

Comments
 (0)