Not able to deploy lambda layer through terraform - Getting RequestEntityTooLargeException

0

Not able to deploy lambda layer through terraform. Getting RequestEntityTooLargeException, however Zip file size is 5532413 bytes Unzipped content size is 14200470 Both are within the permitted size limits. We are able to create other layers which are of more size than this.

已提問 9 個月前檢視次數 524 次
1 個回答
0

Hi,

When you upload a deployment package or layer archive directly to Lambda, the size of the ZIP file is limited to 50 MB. To upload a larger file, store it in Amazon S3 and use the S3Bucket and S3Key parameters. See also https://docs.aws.amazon.com/lambda/latest/dg/troubleshooting-deployment.html#troubleshooting-deployment-updatefunctioncode

profile pictureAWS
專家
已回答 9 個月前
profile picture
專家
已審閱 9 個月前
  • Hi, the file size which I am trying to upload is 5.5 MB (5532413 bytes) only.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南