aws / aws/aws-sam-cli

`sam deploy` for deduped build checks presence of identical build artifact many times

Open
#4,053 15 comments 9 reactions 0 assignees View on GitHub
type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Describe your idea/feature/enhancement

I `sam deploy`-ed 17 lambdas which shares `CodeUri` and `Runtime` (thus deduped build is enabled).
Got following output:

```
Uploading to my-stack-name/eb7b8e83[...snip...] 17287115 / 17287115 (100.00%)
File with same data already exists at my-stack-name/eb7b8e83[...snip...], skipping upload
[... another identical 15 lines ...]
```

This output implies `sam deploy` unnecessarily uploads identical artifact.

### Proposal

Ignore identical upload.
It takes few seconds for each skipped upload.
Ignoring identical upload can improve performance of `sam deploy`.

### Additional Details

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.