Deploy to Lambda@Edge with custom docker image (Ubuntu 22.04 and NodeJS 14)

0

I have a Lambda function that is using a docker image that's running Ubuntu 22.04 and NodeJS 14. The function works fine, but when I try to deploy it to @edge, it gives me this error: "Correct the errors above and try again. Runtime must be one of: Node.js 12.x, Node.js 14.x, Node.js 16.x, Node.js 18.x, Python 3.7, Python 3.8, Python 3.9."

Does Lambda@edge allows custom docker image or is it only working for lambda function that are using the AWS runtime?

asked a year ago1137 views
1 Answer
1
Accepted Answer

Please refer to Restrictions on edge functions.

The following Lambda features are not supported by Lambda@Edge:

  • Lambda functions with AWS Lambda layers.
  • Lambda functions defined as container images.

So at the time of writing, you can only deploy a Lambda@Edge functions based on an AWS runtime and using one of the mentioned runtime versions.

profile pictureAWS
answered a year 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.

Guidelines for Answering Questions