-
-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example package_with_pip_requirements_in_docker fails on Windows 10 #142
Comments
Thanks for the report, it is good to know that it doesn't work on Windows 10. I don't think we have ever run this module on Windows. PR fixing this is very much welcome! |
is there any kind of plan to support this? |
Same here:
|
I have als this problem. Could you please fix this bug? |
same here unfortunately |
Still waiting for the PR :) |
PS: You should be using WSL |
terraform for aws lambda on windows is literally broken for 3 years and nobody cares. I love open source |
This issue has been automatically marked as stale because it has been open 30 days |
Description
Trying to deploy the example package_with_pip_requirements_in_docker using Windows fails
Error message:
zip: Error during zip archive creation Traceback (most recent call last): File ".terraform/modules/terraform-aws-redis-cleanup.redis_cleanup/package.py", line 1137, in build_command bpm.execute(build_plan, zs, query) File ".terraform/modules/terraform-aws-redis-cleanup.redis_cleanup/package.py", line 767, in execute with install_pip_requirements(query, pip_requirements) as rd: File "C:\Python3.7\lib\contextlib.py", line 112, in __enter__ return next(self.gen) File ".terraform/modules/terraform-aws-redis-cleanup.redis_cleanup/package.py", line 888, in install_pip_requirements chown_mask = '{}:{}'.format(os.getuid(), os.getgid()) AttributeError: module 'os' has no attribute 'getuid'
https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/master/package.py#L888
According to this: https://docs.python.org/3.8/library/os.html#os.getgid
these 2 functions are available only on Linux. Basically if you run windows you can deploy only lambdas with non native python requirements.
Versions
Reproduction
Just try to deploy like in package_with_pip_requirements_in_docker example from a windows 10 machine
Expected behavior
Use docker to compile python dependencies
Actual behavior
Fails
The text was updated successfully, but these errors were encountered: