arn:aws:lambda:::awslayer:DEFAULT is not a valid execution environment when uploading lambda zip from S3

0

I'm trying to upload a lambda .zip deployment package from S3, but I'm getting this error:

arn:aws:lambda:::awslayer:DEFAULT is not a valid execution environment.

  • Is lambda function using layer or do you have any dependencies packaged along with lambda code in the zip file?

preguntada hace un año253 visualizaciones
2 Respuestas
0

Hi,

Please check if your layer/runtime is supported.

You can check a similar issue reported on https://github.com/awsdocs/aws-lambda-developer-guide/pull/155

HTH

profile picture
respondido hace un año
profile picture
EXPERTO
revisado hace un año
  • I have no layers and my runtime is Java 8. There is already a deployment package in the lambda running correctly that I am trying to update.

-1
Respuesta aceptada

Upping the timeout to 5 minutes from 15 seconds resolved this issue. Any comments on how timeouts can affect the .zip upload process are welcomed.

respondido hace un año
profile picture
EXPERTO
revisado hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas