Are there any recent tutorial to deploy to AWS Lam...
# ask-for-help
f
Are there any recent tutorial to deploy to AWS Lambda? I've seen that https://github.com/bentoml/aws-lambda-deploy has been deprecated, but I couldn't find an alternative
👀 1
f
I'm having this problem, @Chaoyu:
Copy code
2024-07-18T21:23:41.168Z	File "/usr/local/lib/python3.11/site-packages/bentoml/_internal/configuration/containers.py", line 168, in bentoml_home
2024-07-18T21:23:41.168Z	validate_or_create_dir(home, bentos, models, envs, tmp_bentos)
2024-07-18T21:23:41.168Z	File "/usr/local/lib/python3.11/site-packages/bentoml/_internal/utils/__init__.py", line 150, in validate_or_create_dir
2024-07-18T21:23:41.168Z	path_obj.mkdir(parents=True, exist_ok=True)
2024-07-18T21:23:41.168Z	File "/usr/local/lib/python3.11/pathlib.py", line 1116, in mkdir
2024-07-18T21:23:41.168Z	os.mkdir(self, mode)
2024-07-18T21:23:41.168Z	OSError: [Errno 30] Read-only file system: '/home/bentoml/bentos'
From what I researched, the file system in a Lambda environment is read-only except for the
/tmp
directory.
Setting
BENTOML_HOME
seems to solve the issue
👍 1