aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

Feature request: add flag to control `force_upload` option in `sam sync`

Open adagradschool opened this issue 1 year ago • 5 comments

Describe your idea/feature/enhancement

I wish sam sync command took an optional flag force_upload. Currently if I make a minute change in one resource of the cloudformation stack, then all the packages are zipped and uploaded to s3 making the local loop slow. Although there is a cache mechanism it never gets triggered because the force_upload is hardcoded to True. Doing so on a forked version helped me remove 90+s per run (20%+ faster).

Proposal

Add details of how to add this to the product.

Things to consider:

  1. Will this require any updates to the SAM Spec
  • This will require some documentation changes.

adagradschool avatar Jul 12 '25 03:07 adagradschool

ok

Huyenmy3082020 avatar Jul 18 '25 09:07 Huyenmy3082020

Hey @adagradschool, thanks for the suggestion and opening the issue. Our team will work on it.

Vandita2020 avatar Sep 16 '25 21:09 Vandita2020

Hey, just following up on this. Happy to contribute a PR for this too.

adagradschool avatar Jan 08 '26 16:01 adagradschool

Hi @adagradschool , We welcome your contribution. Please feel free to send the PR and we will happily review and test the feature.

vicheey avatar Jan 30 '26 23:01 vicheey

@vicheey been a while since there's been activity on this issue so I thought I'll pick it up. Hope that's alright

vishwakt avatar May 14 '26 18:05 vishwakt