| name | Sample Template with Workspace Tags | |||
|---|---|---|---|---|
| description | Review the sample template and introduce dynamic workspace tags to your template | |||
| tags |
|
|||
| icon | /icon/docker.png |
This Coder template presents use of Workspace Tags and Coder Parameters.
Template administrators can use static tags to control workspace provisioning, limiting it to specific provisioner groups. However, this restricts workspace users from choosing their preferred workspace nodes.
By using coder_workspace_tags and coder_parameters, template administrators can allow dynamic tag selection, avoiding the need to push the same template multiple times with different tags.
- You will need to have an external provisioner with the correct tagset running in order to import this template.
- When specifying values for the
coder_workspace_tagsdata source, you are restricted to using a subset of Terraform's capabilities. See here for more details.
Update the template and push it using the following command:
./scripts/coder-dev.sh templates push examples-workspace-tags \
-d examples/workspace-tags \
-y