aws-samples / aws-samples/aws-serverless-for-machine-learning-inference

Editing lambda handler

Open
#7 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
38
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Hi I'm trying to customize the lambda handler for real-time inference. However, If I alter the requirements.txt, deployment in cloudformation fails. For example, if I add boto3>=1.15.0 to the `requirements.txt` file deployment fails even though the local image boto3 installs just fine. Is the realtime inference stack sensitive to dependency changes?

Here is my requirements.txt (added boto3 at the end):

`mxnet==1.6.0
numpy==1.19.5
urllib3==1.26.5
certifi==2022.12.7
idna==2.10
graphviz==0.8.4
chardet==3.0.4
boto3>=1.15.0`

Is it possible for you to reproduce by editing the requirements.txt to see if it fails on your end as well? I'm using cdk version 2.59.0 (build b24095d) and using the `./install.sh` flow.

FYI, if I try to deploy the default code/requirements it works fine. But if I alter the requirements file, deployment fails.

Thank you

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.