[aws-lambda-python] Automatic bundling not working correctly for aws_cdk.aws_lambda_python.PythonFunction when using the Python 3.8 runtime #9418
Labels
@aws-cdk/aws-lambda-python
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
From the docs:
When not setting the
runtime
attribute or usingaws_lambda.Runtime.PYTHON_3_7
, the bundling works as expected. However, usingaws_lambda.Runtime.PYTHON_3_8
fails.Reproduction Steps
Create an aws_cdk.aws_lambda_python.PythonFunction object that uses the Python 3.8 runtime and needs an external dependency defined in
requirements.txt
:<projetct_root>/app.py
:<projetct_root>/functions/mylambda/lambda-handler.py
:<projetct_root>/functions/mylambda/requirements.txt
:Error Log
During the bundling I can see several warnings such as:
Then finally it fails with the following error:
Environment
The text was updated successfully, but these errors were encountered: