aws / aws/aws-sam-cli

Hot reloading

Open
#2,800 2 comments 4 reactions 0 assignees View on GitHub
area/local/start-api maintainer/need-followup
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### Describe your idea/feature/enhancement
We use SAM CLI to run lambda's successfully with the following command - `sam local start-api --template samtemplate.yml --env-vars env.json --skip-pull-image --warm-containers EAGER`. Using this command mitigates the per request building of the image/ container but still hot reloading is considerably slow and takes 10s+ for every change saved.
I wish SAM CLI would handle this in a faster way.

### Proposal
Changes in code can be applied to the container using volumes with docker -v command, this could be a solution to this issue if none other exists.
Things to consider:
1. Will this require any updates to the [SAM Spec](https://github.com/awslabs/serverless-application-model)

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.