aws / aws/aws-sam-cli

Multiple lambdas using same image creates duplicate ECR+image

Open
#3,750 7 comments 11 reactions 0 assignees View on GitHub
area/performance maintainer/need-followup type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

I found closed issue #2576 which I believe at that point this just wasn't working at all, but it is indeed working, and this is more of a nitpicky efficiency detail I wanted to see if was possible.

I have 2 lambdas referencing the same Metadata image definitions (just different 'cmd's). It works, but it ends up creating multiple ECR's (using --resolve-image-repos), duplicating the image even though it's the same. So it's just an efficiency issue since (my upload speeds are pitiful from home!). I know it works if you manually deploy the image and reference the same ImageUri in config (if not using Metadata) so it is technically feasible.

thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.