- Notifications
You must be signed in to change notification settings - Fork916
Closed
Description
Thecoder_workspace_tags
data source is not respected or read from the template during template imports, but it works for template builds. As a workaround, the admin must run a generic provisioner simply for template imports AND/OR set tags manually in the template UI.
This is a bad workaround as certain provisioners must be run just for template imports. From#15047:
It's definitely a bug that we don't process coder_workspace_tags for template import jobs. A full fix would have us directly inspect the HCL on coderd to find the coder_workspace_tags and the coder_parameters, then resolve the tags based on the parameters passed to the import job.
Related PRs:
- feat(provisioner/terraform/tfparse): implement WorkspaceTagDefaultsFromFile #15236
- Upcoming PR to evaluate in template imports