Hi Ken. Great post! Just wondering though: would it be much more efficient to pair the lambda_python.PythonLayerVersion with lambda_.Function instead of lambda_python.PythonFunction? Because the PythonFunction creates a docker image with the Python libraries in it already and it's not basically using the layer. But with the Function and PythonLayerVersion combo, which makes more sense for no-redundancy bundling, it doesn't seem to work.
I used lambda_.Function before, for some reason, lambda_.Function you will see some very weird problem when import the library from Lambda Layer into the Lambda function. Since then I just use PythonFunction, which let me don't even need to think about the bundling stuff.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Ken. Great post! Just wondering though: would it be much more efficient to pair the
lambda_python.PythonLayerVersionwithlambda_.Functioninstead oflambda_python.PythonFunction? Because thePythonFunctioncreates a docker image with the Python libraries in it already and it's not basically using the layer. But with theFunctionandPythonLayerVersioncombo, which makes more sense for no-redundancy bundling, it doesn't seem to work.Welp it worked eventually :D
Great. Glad you like it
I used
lambda_.Functionbefore, for some reason,lambda_.Functionyou will see some very weird problem when import the library from Lambda Layer into the Lambda function. Since then I just usePythonFunction, which let me don't even need to think about the bundling stuff.