Relative Python imports in a Dockerized lambda function
Xebia
DECEMBER 13, 2024
Relative Python imports can be tricky for lambda functions. But recently, I ran into the same issue with Dockerized lambda functions. py touch lib/functions/hello-world/requirements.txt touch lib/functions/hello-world/Dockerfile Now you will need to fill the Dockerfile, like this: FROM public.ecr.aws/lambda/python:3.12
Let's personalize your content