https://prefect.io logo
Title
n

Nathaniel Russell

09/26/2022, 8:12 PM
Orion requires sqlite 3.24.0 or later, and the aws docker image for lambda comes with sqlite 3.7. Does anybody know how to get the lambda docker environment to get the proper sqlite version to run prefect API calls through Orion?
c

Christopher Boyd

09/27/2022, 3:27 PM
Hi Nathaniel, I’m not sure I understand what you are asking. Orion requires 3.24, but Lambda comes with 3.7. Is there an issue with 3.7? can you create a custom image and add your own pinned sqlite pinned version?
n

Nathaniel Russell

09/27/2022, 4:49 PM
Lambda's docker image is required because it interfaces with Lambda, it has sqlite 3.7 and I have been unable to install any newer version onto it. There are other docker images with the proper tools (sqlite 3.24+) however they do not interface with lambda.
CMD [ "service.handler" ]
The above line tells lambda what handler function to run, however a non-lambda docker image will not understand this. My problem could be solved 2 ways. Get a non lambda docker image to properly register the handler function, or get sqlite 3.24.0+ installed on the lambda docker image.
FROM public.ecr.aws/lambda/python:3.9
^ That is the lambda image
FROM prefecthq/prefect:2.4.2-python3.9
^ That is the prefect image that has the proper sqlite but doesn't work with lambda
c

Christopher Boyd

09/27/2022, 4:55 PM
I guess I don’t understand what you’re asking - they are not directly compatible no. You would need to create a custom image with a lambda handler, and add the prefect functionlity you need. I guess I don’t understand the intent or use case or why this would be necessary?