HomeAdministrationTemplatesCreating Templates

Creating Templates

Users with the Template Administrator role or above can create templates within Coder.

From a starter template

In most cases, it is best to start with a starter template.

After navigating to the Templates page in the Coder dashboard, choose Create Template > Choose a starter template.

Create a template

From there, select a starter template for desired underlying infrastructure for workspaces.

Starter templates

Give your template a name, description, and icon and press Create template.

Name and icon

[!NOTE] If template creation fails, Coder is likely not authorized to deploy infrastructure in the given location. Learn how to configure provisioner authentication.

From an existing template

You can duplicate an existing template in your Coder deployment. This will copy the template code and metadata, allowing you to make changes without affecting the original template.

After navigating to the page for a template, use the dropdown menu on the right to Duplicate.

Duplicate menu

Give the new template a name, icon, and description.

Duplicate page

Press Create template. After the build, you will be taken to the new template page.

New template

From scratch (advanced)

There may be cases where you want to create a template from scratch. You can use any Terraform provider with Coder to create templates for additional clouds (e.g. Hetzner, Alibaba) or orchestrators (VMware, Proxmox) that we do not provide example templates for.

Refer to the following resources:

Next steps