Skip to content

How Do You Have Multiple Functions in an AWS Lambda Assembly using Top-Level statements #1195

Answered by normj
hounddog22030 asked this question in Q&A
Discussion options

You must be logged in to vote

As @ashishdhingra said by default Lambda functions using top-level statements or Lambda function deployed as executable assembly are for a single function. You could define your own environment variable and then check that environment variable to decide which handler to register with the Lambda bootstrap. Also keep in mind that using the class library approach that you are used to in previous runtimes is just as valid as using executable assemblies with top-level statements. Don't feel like you have to migrate to top-level statements if it doesn't fit with your use case.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hounddog22030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. response-requested Waiting on additional info and feedback. Will move to close soon in 7 days. module/lambda-client-lib
3 participants