I guess you're trying to build lambda image from alternative base image but I recommend to use image base from AWS such as public.ecr.aws/lambda/python:3.8 or amazon/aws-lambda-python:3.8
For your issue, you're missing setting ENV AWS_LAMBDA_RUNTIME_API=, this variable env must be defined but you will still get following error after that
File "/function/awslambdaric/lambda_runtime_client.py", line 76, in wait_next_invocation
response_body, headers = runtime_client.next()
RuntimeError: Failed to get next
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 Jason,
I guess you're trying to build lambda image from alternative base image but I recommend to use image base from AWS such as
public.ecr.aws/lambda/python:3.8
oramazon/aws-lambda-python:3.8
For your issue, you're missing setting
ENV AWS_LAMBDA_RUNTIME_API=
, this variable env must be defined but you will still get following error after that