Skip to content

feat(coderd_template): Support also referencing an archive file. #340

Open

Description

@jatcod3r

Similar to the coder templates push command, the coderd_template resource should be able to optionally reference an archive file to push instead of just a directory.

I have a use-case where I need to be able to include hidden directories as part of the template bundle, and to my understanding the way Coder handles it, it intentionally ignores them.

In my use-case, I'm already filtering out the hidden files that I shouldn't be including via:

tar \
  --exclude='tmp.auto.tfvars.json' \
  --exclude='tf.plan' \
  --exclude='terraform.tfstate' \
  --exclude='.claude' \
  --exclude='.terraform' \
  --exclude='._*' \
  --exclude='.DS_Store' \
  --exclude='.git' -cvf - $(ls -A) | coder templates push -O coder memorycard --variables-file tmp.auto.tfvars.json -d -

But it would be nice if this was tracked and managed by the coderd_template instead.

Activity

  1. changed the title [-]coderd_template: Support also referencing an archive file.[/-] [+]feat(coderd_template): Support also referencing an archive file.[/+] on May 1, 2026
  2. michvllni commented on Sep 17, 2026

    @michvllni
    Contributor

    @jatcod3r I just saw your issue and PR after starting to implement this as well, but I also added an option to bundle the files as a map and in addition to file paths also provide them directly as base64 to lift the file system requirements the provider currently has. Maybe we can merge our proposals? You can take a look in #440

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions