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.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠