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?

已提問 1 年前檢視次數 1162 次
1 個回答
1
已接受的答案

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
已回答 1 年前

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

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

回答問題指南