AWS Lambda错误:解压缩的大小必须小于262144000字节 [英] AWS Lambda Error: Unzipped size must be smaller than 262144000 bytes

查看:136
本文介绍了AWS Lambda错误:解压缩的大小必须小于262144000字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个lambda函数,该函数使用python 2.7中的ResumeParser库.但是,当我在AWS上部署包括库在内的此功能时,会引发以下错误:

I am developing one lambda function, which use the ResumeParser library made in the python 2.7. But when I deploy this function including the library on the AWS it's throwing me following error:

解压缩后的大小必须小于262144000字节

Unzipped size must be smaller than 262144000 bytes

推荐答案

也许您没有排除使文件变得如此庞大的开发包.

Perhaps you did not exclude development packages which made your file to grow that big.

我的情况是(对于NodeJS),我在serverless.yml中缺少以下内容:

I my case, (for NodeJS) I had missing the following in my serverless.yml:

package:
  exclude:
    - node_modules/**
    - venv/**

查看是否有适用于Python或您的案例的类似软件.

See if there are similar for Python or your case.

这篇关于AWS Lambda错误:解压缩的大小必须小于262144000字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆