Open leslie-alldridge opened 1 year ago
can you provide your code (at least the core part causing the issue), most probably this could be caused by a third-party package that requires the mentioned library
and lambda removed a few inbuild libraries/binaries which are in previous runtimes, we need to add them in layers if this is the case.
anyway, this should be reproduced with both console level and custom image.
Background: We updated all of our Lambda to Python 3.10 and noticed a couple throwing this error
Googling online it looks like a fix is to deploy the lambda code in a docker container and install the missing depdendencies. Before going down that path I figured it would be worth testing our builds locally using the AWS Provided lambda images.
When running the code locally in docker and sending it a request, the response comes back perfectly without any errors.
It seems like there's disparity between the docker image and what's used in the AWS Console. Is someone able to confirm or update the Python 3.10 used in the AWS Console?