@@ -325,46 +325,47 @@ Use `prebuilds` to define how many instances of the template should be stored as
325
325
When a developer selects the associated template, the workspace will be assigned to that developer and the server will build a new prebuilt workspace.
326
326
327
327
<details><summary>Expand for an example</summary>
328
+
328
329
` ` ` tf
329
330
data " coder_workspace_preset" " goland-gpu" {
330
331
name = " GoLand with GPU"
331
332
parameters = {
332
- " machine_type" = " n1-standard-1"
333
- " attach_gpu" = " true"
334
- " gcp_region" = " europe-west4-c"
335
- " jetbrains_ide" = " GO"
333
+ " machine_type" = " n1-standard-1"
334
+ " attach_gpu" = " true"
335
+ " gcp_region" = " europe-west4-c"
336
+ " jetbrains_ide" = " GO"
336
337
}
337
338
prebuilds {
338
339
instances = 1
339
340
}
340
341
}
341
342
342
343
data " coder_parameter" " machine_type" {
343
- name = " machine_type"
344
- display_name = " Machine Type"
345
- type = " string"
346
- default = " n1-standard-2"
344
+ name = " machine_type"
345
+ display_name = " Machine Type"
346
+ type = " string"
347
+ default = " n1-standard-2"
347
348
}
348
349
349
350
data " coder_workspace_preset" " attach_gpu" {
350
- name = " attach_gpu"
351
- display_name = " Attach GPU?"
352
- type = " bool"
353
- default = " false"
351
+ name = " attach_gpu"
352
+ display_name = " Attach GPU?"
353
+ type = " bool"
354
+ default = " false"
354
355
}
355
356
356
357
data " coder_workspace_preset" " gcp_region" {
357
- name = " gcp_region"
358
- display_name = " Machine Type"
359
- type = " string"
360
- default = " n1-standard-2"
358
+ name = " gcp_region"
359
+ display_name = " Machine Type"
360
+ type = " string"
361
+ default = " n1-standard-2"
361
362
}
362
363
363
364
data " coder_workspace_preset" " jetbrains_ide" {
364
- name = " jetbrains_ide"
365
- display_name = " Machine Type"
366
- type = " string"
367
- default = " n1-standard-2"
365
+ name = " jetbrains_ide"
366
+ display_name = " Machine Type"
367
+ type = " string"
368
+ default = " n1-standard-2"
368
369
}
369
370
` ` `
370
371
0 commit comments