Lambda Function built using Docker Image cannot find the lambda handler function

0

I am trying to test my Lambda function that was created using a Docker Image on a file that was uploaded to an S3 bucket. I double checked my CMD in the Dockerfile contents and the file/method name are both spelled correctly. Due to the need to install non-Python libraries for the Lambda function to run, a Docker Image rather than a zip file is required. I checked CloudWatch and the log events show the following error: INIT_REPORT Init Duration: 4.18 ms Phase: init Status: error Error Type: Runtime.InvalidEntrypoint, which suggests that the handler function isn't being located. I have tried providing the file_name.method_name (without file extensions) explicitly in the management console. No matter what permissions I grant, the handler function is unable to be located.

ghask92
질문됨 2달 전261회 조회
1개 답변
0

I'm Sorry if I misunderstood your explanation.

Did you set the handler correctly in the Dockerfile to create the Docker Image?

https://docs.aws.amazon.com/lambda/latest/dg/python-image.html

profile picture
전문가
shibata
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠