@@ -25,7 +25,7 @@ Prebuilt workspaces are tightly integrated with [workspace presets](./parameters
25
25
## Prerequisites
26
26
27
27
- [ ** Premium license** ] ( ../../licensing/index.md )
28
- - ** Compatible Terraform provider** : Use ` coder/coder ` Terraform provider ` >= 2.4.0 ` .
28
+ - ** Compatible Terraform provider** : Use ` coder/coder ` Terraform provider ` >= 2.4.1 ` .
29
29
- ** Feature flag** : Enable the ` workspace-prebuilds ` [ experiment] ( ../../../reference/cli/server.md#--experiments ) .
30
30
31
31
## Enable prebuilt workspaces for template presets
@@ -75,7 +75,7 @@ Prebuilt workspaces follow a specific lifecycle from creation through eligibilit
75
75
76
76
Prebuilt workspaces that fail during provisioning are retried with a backoff to prevent transient failures.
77
77
78
- 1 . When a developer requests a new workspace, the claiming process occurs:
78
+ 1 . When a developer creates a new workspace, the claiming process occurs:
79
79
80
80
1 . Developer selects a template and preset that has prebuilt workspaces configured.
81
81
1 . If an eligible prebuilt workspace exists, ownership transfers from the ` prebuilds ` user to the requesting user.
@@ -84,13 +84,17 @@ Prebuilt workspaces follow a specific lifecycle from creation through eligibilit
84
84
[ ` coder_workspace_owner ` ] ( https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace_owner )
85
85
datasources (see [ Preventing resource replacement] ( #preventing-resource-replacement ) for further considerations).
86
86
87
- The developer doesn't see the claiming process — the workspace will just be ready faster than usual.
87
+ The claiming process is transparent to the developer — the workspace will just be ready faster than usual.
88
88
89
89
You can view available prebuilt workspaces in the ** Workspaces** view in the Coder dashboard:
90
90
91
91
![ A prebuilt workspace in the dashboard] ( ../../../images/admin/templates/extend-templates/prebuilt/prebuilt-workspaces.png )
92
92
_ Note the search term ` owner:prebuilds ` ._
93
93
94
+ Unclaimed prebuilt workspaces can be interacted with in the same way as any other workspace.
95
+ However, if a Prebuilt workspace is stopped, the reconciliation loop will not destroy it.
96
+ This gives template admins the ability to park problematic prebuilt workspaces in a stopped state for further investigation.
97
+
94
98
### Template updates and the prebuilt workspace lifecycle
95
99
96
100
Prebuilt workspaces are not updated after they are provisioned.
@@ -169,6 +173,13 @@ For example, the [`ami`](https://registry.terraform.io/providers/hashicorp/aws/l
169
173
has [ ` ForceNew ` ] ( https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/ec2/ec2_instance.go#L75-L81 ) set,
170
174
since the AMI cannot be changed in-place._
171
175
176
+ #### Updating claimed prebuilt workspace templates
177
+
178
+ Once a prebuilt workspace has been claimed, and if its template uses ` ignore_changes ` , users may run into an issue where the agent
179
+ does not reconnect after a template update. This shortcoming is described in [ this issue] ( https://github.com/coder/coder/issues/17840 )
180
+ and will be addressed before the next release (v2.23). In the interim, a simple workaround is to restart the workspace
181
+ when it is in this problematic state.
182
+
172
183
### Current limitations
173
184
174
185
The prebuilt workspaces feature has these current limitations:
@@ -177,13 +188,13 @@ The prebuilt workspaces feature has these current limitations:
177
188
178
189
Prebuilt workspaces can only be used with the default organization.
179
190
180
- [ coder/internal # 364 ] ( https://github.com/coder/internal/issues/364 )
191
+ [ View issue ] ( https://github.com/coder/internal/issues/364 )
181
192
182
193
- ** Autoscaling**
183
194
184
195
Prebuilt workspaces remain running until claimed. There's no automated mechanism to reduce instances during off-hours.
185
196
186
- [ coder/internal # 312 ] ( https://github.com/coder/internal/issues/312 )
197
+ [ View issue ] ( https://github.com/coder/internal/issues/312 )
187
198
188
199
### Monitoring and observability
189
200
0 commit comments