You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
Trying to upload a new version of a Coder workspace template using
coder templates push -d /path/to/template/folder/ template-name
(using versionv0.8.4
of the Coder CLI tool) fails with the error:The
.tf
files in our workspace template folder aren't very large, though:I think the issue may be that the
.terraform
folders that are generated when we runterraform init
(towards being able to runterraform validate
) are being considered by the Coder CLI tool when constructing the template archive: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
The text was updated successfully, but these errors were encountered: