Skip to content

docs: document workspace presets feature #16612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 5, 2025
Prev Previous commit
Next Next commit
rm prebuilt
  • Loading branch information
EdwardAngert committed Feb 25, 2025
commit faee979efa2ce6754c80a1e842ce1a892fe5ee97
12 changes: 3 additions & 9 deletions docs/admin/templates/extending-templates/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ Workspace presets allow you to select settings tailored to your most common deve
Coder admins can configure workspace presets with combinations of parameter values and workspace settings within each template's Terraform file, and workspace users can customize their configurations as they need to.

Use `coder_workspace_preset` to define the preset parameters.
You can use prebuilt workspaces to ensure that workspaces can be deployed within one minute.
Use `prebuilds` 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.

<details><summary>Expand for an example</summary>

Expand All @@ -331,12 +328,9 @@ data "coder_workspace_preset" "goland-gpu" {
name = "GoLand with GPU"
parameters = {
"machine_type" = "n1-standard-1"
"attach_gpu" = "true"
"gcp_region" = "europe-west4-c"
"jetbrains_ide" = "GO"
}
prebuilds {
instances = 1
"attach_gpu" = "true"
"gcp_region" = "europe-west4-c"
"jetbrains_ide" = "GO"
}
}

Expand Down
Loading