Skip to content

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?

asked 3 years ago421 views
2 Answers
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

answered 3 years ago
EXPERT
reviewed 3 years ago
  • 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
Accepted Answer

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.

answered 3 years ago
EXPERT
reviewed 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.