You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tamsler thanks for proposal. I would probably name it as package.sourceDir, and support it in both top level package setting and individual function setting (which could be used if package.individually is turned on).
Note that we also plan to improve packaging (#6580) so only modules used by lambda are packaged, and that will naturally address your use case.
Use case description
The serverless.yml package section should allow to define a codeUri which will be use as the base path for generating the zip archive.
e.g. Code
src/handler/index.js
src/lib/service.js
serverless.yml
package:
codeUri: ./src
this would generate a zip archive containing:
handler/index.js
lib/service.js
Proposed solution
e.g. Sample Code
src/handler/index.js
src/lib/service.js
serverless.yml
package:
codeUri: ./src
this would generate a zip archive containing:
handler/index.js
lib/service.js
This would be a similar capability that AWS SAM offers via: CodeUri: ./src
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html
The text was updated successfully, but these errors were encountered: