We use cookies to make your experience better.
Learn how to describe workspace configuration as code.
Workspace templates brings the infrastructure as code paradigm to Coder workspaces. Templates allow you to define and create new workspaces using YAML.
Workspace templates are declarative YAML files that describe
how to configure workspaces and their supporting infrastructure. Coder supports
files with either the .yaml
or .yml
extension.
.coder/<template-name>.yaml
file exists in your repository.We strongly recommend allowing the Git provider to run a webhook capable of reaching the Coder server for immediate template updates. Otherwise, Coder will update your workspace templates daily.
You can find a fully populated workspace template and descriptions of each field in our syntax guide.
To create a new workspace using a template, go to New Workspace > Create from Template.
When prompted, provide:
coder.yaml
configuration file. See Workspace templates for more
information about these files.coder/coder.yaml
, but if you choose a different path, provide it
hereTo make it easy for your developers to use your template, you can generate an embeddable Markdown button for use in your repo. See the admin guide for details.
See an opportunity to improve our docs? Make an edit.