-
Notifications
You must be signed in to change notification settings - Fork 4k
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
aws-lambda-python-alpha: "jsii-kernel-sZg8MV/node_modules/@aws-cdk/aws-lambda-python-alpha/lib/Containerfile: no such file or directory" #24458
Comments
Unfortunately we can't help you troubleshooting without any provided code. Is it possible for you to share an simplified repo that we can simply clone and check in our environment? |
It already fails with the provided code practically straight from the docs.
It does not matter what is inside my_index.py. |
The issue appears to be the use of |
The reason is that your temporary directory is not automatically mapped into the finch VM: Add the following cpus: 3
memory: 4GiB
additional_directories:
- path: /var/folders
- path: /private/var/folders |
Add troubleshooting instructions to resolve a weird error produced by Finch. Fixes #24458.
Add troubleshooting instructions to resolve a weird error produced by Finch. Fixes #24458. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Add troubleshooting instructions to resolve a weird error produced by Finch. Fixes aws#24458. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
Hello,
I have a cdk project defined in Python and some Python Lambda functions defined in one of the stacks based on aws-lambda-python-alpha (2.67.0a0).
My machine is a Mac. When I want to deploy, I get the following error:
I tried
All to no avail unfortunately.
How can I fix this?
Expected Behavior
deployment working normally
Current Behavior
deployment failing with above message
Reproduction Steps
I assume this very much to be related to my local environment as it happens for multiple versions of the module with only the doc example:
python.PythonFunction(self, "MyFunction", entry="/tmp", # required runtime=lambda_.Runtime.PYTHON_3_8, # required index="my_index.py", # optional, defaults to 'index.py' handler="my_exported_func" )
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.67.0 (build b6f7f39)
Framework Version
No response
Node.js Version
v16.19.0
OS
macOS 12.6.3
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: