SAM & Docker Builds-- How do they update (not working for me)?

0

TLDR' Sam deploy for docker images not recognizing changes to Dockerfile or app.py.

Using this terrific blog post--> https://aws.amazon.com/blogs/compute/using-container-image-support-for-aws-lambda-with-aws-sam/ , I've built an image with an NLP framework and pushed to ECR then accessed from another lambda. No problem.

When I go to the Dockerfile and the app.py to make changes and expand the text analysis functions I am trying to use, sam deploy says no changes to be deployed.

I've tried:

  1. sam validate && sam build && sam deploy
  2. sam validate && sam build && sam deploy --guided (repeatedly)
  3. sam validate && sam build && sam deploy --force-uploads
  4. Removed "cache=true" from the samconfig.toml and tried again

In the past, I've done manual docker pushes and worked with Dokku/Docker so I am not completely ignorant of the process. But this is odd behavior. I read someplace else lambdas connected to docker images don't reset for the "latest" image version. What am I missing?

질문됨 2년 전1315회 조회
1개 답변
0

For time being, I copied the original lambda function with another name and image tag. Deploying correctly.

답변함 2년 전

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

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

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

관련 콘텐츠