|
3 | 3 | page_title:"coder_workspace_preset Data Source - terraform-provider-coder"
|
4 | 4 | subcategory:""
|
5 | 5 | description:|-
|
6 |
| - Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that are not defined by the preset will still be configurable when creating a workspace. |
| 6 | + Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that aredefined by the template butnot defined by the preset will still be configurable when creating a workspace. |
7 | 7 | ---
|
8 | 8 |
|
9 | 9 | #coder_workspace_preset (Data Source)
|
10 | 10 |
|
11 |
| -Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that are not defined by the preset will still be configurable when creating a workspace. |
| 11 | +Use this data source to predefine common configurations for coder workspaces. Users will have the option to select a defined preset, which will automatically apply the selected configuration. Any parameters defined in the preset will be applied to the workspace. Parameters that aredefined by the template butnot defined by the preset will still be configurable when creating a workspace. |
12 | 12 |
|
13 | 13 | ##Example Usage
|
14 | 14 |
|
@@ -39,7 +39,7 @@ data "coder_workspace_preset" "example" {
|
39 | 39 | ###Optional
|
40 | 40 |
|
41 | 41 | -`parameters` (Map of String) Workspace parameters that will be set by the workspace preset. For simple templates that only need prebuilds, you may define a preset with zero parameters. Because workspace parameters may change between Coder template versions, preset parameters are allowed to define values for parameters that do not exist in the current template version.
|
42 |
| --`prebuilds` (Block Set, Max: 1)Prebuilt workspace configuration related tothisworkspacepreset. Coder willbuild and maintain workspaces in reserve based on this configuration. When a user creates anewworkspace usinga preset, theywill beassigned a prebuilt workspace, instead of waiting for a newworkspace to build. (see[below for nested schema](#nestedblock--prebuilds)) |
| 42 | +-`prebuilds` (Block Set, Max: 1)Configuration for prebuilt workspaces associated withthis preset. Coder willmaintain a pool of standby workspaces based on this configuration. When a user creates a workspace usingthis preset, theyareassigned a prebuilt workspace instead of waiting for a newone to build. See prebuilt workspace documentation[here](https://coder.com/docs/admin/templates/extending-templates/prebuilt-workspaces.md) (see[below for nested schema](#nestedblock--prebuilds)) |
43 | 43 |
|
44 | 44 | ###Read-Only
|
45 | 45 |
|
|