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?

preguntada hace un año1162 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
respondido 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