Managing Templates
You create and edit Coder templates asTerraform configuration files (.tf
) andany supporting files, like a README or configuration files for other services.
Who creates templates?
TheTemplate Admin role (andabove) can create templates. End users, like developers, create workspaces fromthem. Templates can also bemanaged with git, allowingany developer to propose changes to a template.
You can give different users and groups access to templates withrole-based access control.
Starter templates
We provide starter templates for common cloud providers, like AWS, andorchestrators, like Kubernetes. From there, you can modify them to use your ownimages, VPC, cloud credentials, and so on. Coder supports all Terraformresources and properties, so fear not if your favorite cloud provider isn'there!

If you prefer to use Coder on thecommand line,coder templates init
.
Coder starter templates are also available on ourGitHub repo.
Community Templates
As well as Coder's starter templates, you can see a list of community templatesby our usershere.
Editing templates
Our starter templates are meant to be modified for your use cases. You can editany template's files directly in the Coder dashboard.

If you'd prefer to use the CLI, usecoder templates pull
, edit the templatefiles, thencoder templates push
.
Tip
Even if you are a Terraform expert, we suggest reading ourguided tour of a template.
Updating templates
Coder tracks a template's versions, keeping all developer workspaces up-to-date.When you publish a new version, developers are notified to get the latestinfrastructure, software, or security patches. Learn more aboutchange management.

Template update policies
Note
Template update policies are a Premium feature.Learn more.
Licensed template admins may want workspaces to always remain on the latestversion of their parent template. To do so, enableTemplate Update Policiesin the template's general settings. All non-admin users of the template will beforced to update their workspaces before starting them once the setting isapplied. Workspaces which leverage autostart or start-on-connect will beautomatically updated on the next startup.

Delete templates
You can delete a template using both the coder CLI and UI. Onlytemplate admins and owners can delete atemplate, and the template must not have any running workspaces associated toit.
In the UI, navigate to the template you want to delete, and select the dropdownin the right-hand corner of the page to delete the template.

Using the CLI, login to Coder and run the following command to delete atemplate:
coder templates delete <template-name>