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
When a template file size is greater than TEMPLATE_BODY_SIZE_LIMIT on Windows, we see this error:
Successfully packaged artifacts and uploaded to s3://awscfncli-853215655166-us-east-1.
Template body is too large, uploading as artifact.
Template uploaded to s3://awscfncli-<account>-us-east-1/stack/<guid>.template.json
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\USER~1\\AppData\\Local\\Temp\\1\\tmpldldvc8h'
Whether the name can be used to open the file a second time, while
the named temporary file is still open, varies across platforms (it can
be so used on Unix; it cannot on Windows NT or later)
Consider using os.path.join(tempfile.gettempdir(), os.urandom(24).hex()) instead. It's reliable, cross-platform, and the only caveat is that it doesn't work on FAT partitions.
The text was updated successfully, but these errors were encountered:
Do you still have that Surface laptop to reproduce this? It may be a bit late but considering adding a test? (and figure out how to run windows tests on CodeBuild)
When a template file size is greater than TEMPLATE_BODY_SIZE_LIMIT on Windows, we see this error:
The problem is here:
awscfncli/awscfncli2/runner/runbook/package.py
Lines 112 to 130 in 42297e6
Referring to a NamedTemporaryFile by name after instantiation is not cross platform, and fails on Windows. From http://docs.python.org/library/tempfile.html#tempfile.NamedTemporaryFile:
See bravoserver/bravo#111 for another example of this issue.
See also bravoserver/bravo#111 (comment) for a suggestion on a Windows alternative.
Another suggestion (from deepchem/deepchem#707 (comment)) is to stop using NamedTemporaryFile entirely:
The text was updated successfully, but these errors were encountered: