chalice
chalice copied to clipboard
Follow symlinks in chalicelib
Hi,
I'm wondering if there is currently a way to do this, or request that this is a feature, but following symlinks of packages within the chalicelib directory would be very useful. Especially when sharing custom code between various projects.
Other tools like Apex (apex.run) already do this and it seems to work relatively well.
Marking this as a feature request.
AWS recently announced "layers" for sharing code and libraries among lambda functions: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
This should be the way to go now, instead of symlinks, as suggested in #1001.
Layers solve one particular issue, but there are plenty of other reasons to support symlinks in the chalicelib directory. In my particular case, the code I wish to symlink is used by chalice, but is also used by other non-chalice scripts, etc., and should remain where it is.