You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example templates are not designed to support every use (e.g [examples/aws-linux](https://github.com/coder/coder/tree/main/examples/templates/aws-linux) does
35
-
not support custom VPCs). You can add these features by editing the Terraform
36
-
code once you run `coder templates init` (new) or `coder templates pull`
37
-
(existing).
76
+
Example templates are not designed to support every use (e.g
does not support custom VPCs). You can add these features by editing the
79
+
Terraform code once you run `coder templates init` (new) or `coder templates
80
+
pull` (existing).
38
81
39
82
Refer to the following resources to build your own templates:
40
83
41
-
- Terraform: [Documentation](https://developer.hashicorp.com/terraform/docs) and [Registry](https://registry.terraform.io)
42
-
- Common [concepts in templates](#concepts-in-templates) and [Coder Terraform provider](https://registry.terraform.io/providers/coder/coder/latest/docs)
43
-
-[Coder example templates](https://github.com/coder/coder/tree/main/examples/templates) code
84
+
- Terraform: [Documentation](https://developer.hashicorp.com/terraform/docs) and
85
+
[Registry](https://registry.terraform.io)
86
+
- Common [concepts in templates](#concepts-in-templates) and [Coder Terraform
@@ -291,18 +346,22 @@ resources associated with the workspace.
291
346
### Coder apps
292
347
293
348
By default, all templates allow developers to connect over SSH and a web
294
-
terminal. See [Configuring Web IDEs](./ides/web-ides.md) to
295
-
learn how to give users access to additional web applications.
349
+
terminal. See [Configuring Web IDEs](./ides/web-ides.md) to learn how to give
350
+
users access to additional web applications.
296
351
297
352
### Data source
298
353
299
-
When a workspace is being started or stopped, the `coder_workspace` data source provides
300
-
some useful parameters. See the [documentation for the `coder` Terraform provider](https://registry.terraform.io/providers/coder/coder/latest/docs/data-sources/workspace)
354
+
When a workspace is being started or stopped, the `coder_workspace` data source
355
+
provides some useful parameters. See the [documentation for the `coder`
You can add these environment variable definitions to your own templates, or customize them however
320
-
you like.
378
+
You can add these environment variable definitions to your own templates, or
379
+
customize them however you like.
321
380
322
381
## Troubleshooting templates
323
382
324
-
Occasionally, you may run into scenarios where a workspace is created, but the agent is not connected. This means the agent or [init script](https://github.com/coder/coder/tree/main/provisionersdk/scripts) has failed on the resource.
383
+
Occasionally, you may run into scenarios where a workspace is created, but the
384
+
agent is not connected. This means the agent or [init
385
+
script](https://github.com/coder/coder/tree/main/provisionersdk/scripts) has
386
+
failed on the resource.
325
387
326
388
```sh
327
389
$ coder ssh myworkspace
@@ -332,18 +394,23 @@ While troubleshooting steps vary by resource, here are some general best
332
394
practices:
333
395
334
396
- Ensure the resource has `curl` installed
335
-
- Ensure the resource can `curl` your Coder [access URL](./admin/configure.md#access-url)
336
-
- Manually connect to the resource and check the agent logs (e.g., `docker exec` or AWS console)
397
+
- Ensure the resource can `curl` your Coder [access
398
+
URL](./admin/configure.md#access-url)
399
+
- Manually connect to the resource and check the agent logs (e.g., `kubectl
400
+
exec`, `docker exec` or AWS console)
337
401
- The Coder agent logs are typically stored in `/var/log/coder-agent.log`
338
-
- The Coder agent startup script logs are typically stored in `/var/log/coder-startup-script.log`
402
+
- The Coder agent startup script logs are typically stored in
403
+
`/var/log/coder-startup-script.log`
339
404
340
405
## Template permissions (enterprise)
341
406
342
-
Template permissions can be used to give users and groups access to specific templates. [Learn more about RBAC](./admin/rbac.md).
407
+
Template permissions can be used to give users and groups access to specific
408
+
templates. [Learn more about RBAC](./admin/rbac.md).
343
409
344
410
## Community Templates
345
411
346
-
You can see a list of community templates by our users [here](https://github.com/coder/coder/blob/main/examples/templates/community-templates.md).
412
+
You can see a list of community templates by our users
0 commit comments