SAM to deploy Image-Based Lambda

0

My Question: Can you create an ECR repository and an Image-backed lambda from a Dockerfile from my local via SAM without the need to build the image and upload it first outside of SAM? I was hoping I could define my Dockerfile, the relative file paths, and SAM would handle the rest.

Context: I want to use SAM to manage an ECR repository and the Docker image that will back a lambda function. I have attempted a combination of configurations in the SAM template including:

  • defining the ECR repository
  • using the Metadata to point to the Dockerfile that sits alongside the Lambda function (python)
  • Specifying the ImageURI
  • Specifying CodeURI

The error appears to be related to the fact that the image is not being added to ECR. Naturally, SAM rolls back the deploy, so I am trying to figure out where things are falling over.

profile picture
preguntada hace un mes122 visualizaciones
No hay respuestas

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