![](/img/trans.png)
[英]Unzipped size must be smaller than 262144000 bytes - AWS Lambda Error
[英]sam deploy Unzipped size must be smaller than 262144000 bytes
在我的 node.js lambda sam 應用程序中,出現此錯誤:資源處理程序返回消息:“解壓縮后的大小必須小於 262144000 字節”
在搜索更多 SO 帖子時,我知道我們必須使用individual: true
as here或者我們必須排除 node_modules as given here
但我的問題是我使用的是template.yml
而不是serverless.yml
,后者不支持package
屬性,我收到此錯誤:
Error: Failed to create changeset for the stack: sam-app, ex: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state: For expression "Status" we matched expected path: "FAILED" Status: FAILED. Reason: Invalid template property or properties [package]
那么如何排除node_modules
或使用individual: true
在我的情況下減少 zip 大小?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.