Description
Trying to upload a new version of a Coder workspace template using coder templates push -d /path/to/template/folder/ template-name
(using version v0.8.4
of the Coder CLI tool) fails with the error:
Archive too big. Must be <= 1048576 bytes
The .tf
files in our workspace template folder aren't very large, though:
# `.` here is our workspace template directory
❯ find . f -name '*.tf' -exec du -ch {} + | grep total$
88K total
I think the issue may be that the .terraform
folders that are generated when we run terraform init
(towards being able to run terraform validate
) are being considered by the Coder CLI tool when constructing the template archive:
# `.` here is our workspace template directory
❯ du -h .
...
347M .terraform
302M a_local_module/.terraform
I saw that hidden files are skipped by the Coder CLI tool when it creates the template archive - could hidden folders (or at least .terraform
) be skipped as well?
coder/provisionersdk/archive.go
Lines 43 to 46 in 184f062