Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a path to the code for a lambda function #5900

Open
owena1337 opened this issue Mar 6, 2019 · 0 comments
Open

Specify a path to the code for a lambda function #5900

owena1337 opened this issue Mar 6, 2019 · 0 comments

Comments

@owena1337
Copy link

This is a Feature Proposal

Currently, you have to specify the handler for a function like so;
functions:
MyLambda:
handler: Lambdas/MyLambda/index.handler

With this approach, when the serverless deploy command is executed, it pushes up the entire folder for Lambda's into every Lambda function, so you will get other lambda function code in a path in a lambda, which is silly.

Description

  • What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
    This should be solved by specifying a "path" property so we can chose, for MyLambda, the code is here, and thus this should be deployed to this lambda function only.

e.g.

functions:
BetPlacementLambda:
path: Lambdas/MyLambda
handler: index.handler

  • If there is additional config how would it look

Similar or dependent issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants