Hot reloading for Python Lambda functions
See original GitHub issueThe python with packages example demonstrates using sam local with a bundle.zip. Hot-reloading still “works” in that if the bundle.zip changes it will reload the contents, but there’s still a lengthy build time for each change.
If I simply delete the bundle.zip hot reload of the python files appears to work. I haven’t tracked down why, but I assume it has to do with the default value from --static-dir
pointing at where my functions live.
I’d be satisfied with putting logic into the template like CodeUri: !If [EnvRunningLocal, ., bundle.zip]
, but #194 documents how that’s failing for me. I can imagine other ways to solve this, but I know very little about this project so I’m hesitant to ask for specific implementations. I’d just like to have some way of having hot reload work on python files even when the final target is a zip.
#featurerequest
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
#435 started an excellent discussion/PR around this feature
@tedbrandston Is this the same case as of today? Are you running into similar issues today. I’m going to close this issue for now, but feel free to open a new issue with latest steps to reproduce this.
Thanks!