Bundling too many artifacts
Hi!
When doing lambda deploy too many artifacts get bundled:
Bundling: 'README.md'
Bundling: 'service.py'
Bundling: 'requirements.txt'
Bundling: 'event.json'
Bundling: '.gitignore'
Is there a way to exclude/include explicitly what should be bundled? Regards
It does't answer your question completely, but if you need to include some source folder, you can add it in your config.yaml in build > source_directories separated by comma.
I have tried to put the source code in a lib folder y include it in the config.yaml, but the result is that invoke no longer works and build bundles everything in the root folder and also the contents of the lib folder.
I think that the idea should be to add support for a sort of .lambdaignore mechanism to avoid bundling artifacts that do not belong to the execution environment of the lambda function.
@opobla, indeed there are no possibility to this. According to the source code, the tool packs whatever content of the directories. I going to came up with PR addressing this issue sooner or later.
I would benefit from this functionality as well