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.

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen