I have an Docker image:
FROM public.ecr.aws/lambda/python:3.9
# Copy function code
COPY src/ ${LAMBDA_TASK_ROOT}
# Install the function's dependencies using file requirements.txt
# from your project folder.
# COPY requirements/requirements.txt .
# RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "lambda_function.lambda_handler" ]
When I run locally, it works, but in AWS it’s causing the error: Runtime exited with error: signal: segmentation fault
.
The error occurs in ‘boto3.client(“s3”)’ command.
I have tried change the Python version, the memory and VPC
New contributor
Henrique Koga is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.