mxnet-lambda function creation fails

0

Hi, I'm trying to run this from an EC2 instance (sagemaker), but it fails with:

An error occurred (RequestEntityTooLargeException) when calling the CreateFunction operation: Request must be smaller than 69905067 bytes for the CreateFunction operation

What is wrong?

AWS
專家
已提問 5 年前檢視次數 217 次
1 個回答
0
已接受的答案

You zipped function code is too large. See the limits here: https://docs.aws.amazon.com/lambda/latest/dg/limits.html

It has to be smaller than 50 MB

Try to upload your zip to s3 first. Then reference the archive in S3 in the CreateFunction request. This could work when your unzipped code is smaller than 250 MB.

AWS
已回答 5 年前

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

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

回答問題指南