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
EXPERTE
gefragt vor 5 Jahren217 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen