When deploying a PythonFunction using aws_lambda_python, the packaging takes place in a docker container. The packaging of the function, including automatic installation of the requirements.txt dependencies is done inside the container.
Locally the execution happens without any issues. Using the github actions this fails
workflow:
When deploying a
PythonFunction
usingaws_lambda_python
, the packaging takes place in a docker container. The packaging of the function, including automatic installation of therequirements.txt
dependencies is done inside the container.Locally the execution happens without any issues. Using the github actions this fails workflow:
Error AFTER installation from
requirements.txt
has taken place, states thatrequirements.txt
is not present:The CDK declaration is done like so (using
__file__
) to guarantee the location is always the same):I know
nodeJS
functions can be bundled usingesbuild
but the python functions don't support local bundling.