- 最新
- 投票最多
- 评论最多
I'd check that all the dependencies included in the zip file are required and if not exclude what can be removed. Like you can remove node_modules in NodeJs or venv in Python.
The alternative solutions depend on the use case, for instance how often is your Lambda invoked? if it's invoked once per day or such, you can eventually load the dependencies from S3 on start. You can also mount an EFS network share to your lambda [2]
A container image is a good solution for this and you can create an image up to 10Gb. The documentation describes the steps to follow to get started [2].
[1] https://aws.amazon.com/blogs/compute/using-amazon-efs-for-aws-lambda-in-your-serverless-applications/ [2] https://docs.aws.amazon.com/lambda/latest/dg/images-create.html
相关内容
- AWS 官方已更新 5 个月前
- AWS 官方已更新 1 年前