aws / aws/aws-sam-cli

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

Open
#8,168 5 comments 0 reactions 0 assignees View on GitHub
area/sync 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 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](https://github.com/awslabs/serverless-application-model)
- This will require some documentation changes.

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.