Reusing C# Lambda functions
0
I have a few lambdas written in C#. There are some functions which can be reused among these lambdas. How can I achieve that?
asked a month ago12 views
3 Answers
1
Accepted Answer
You can use the same reuse lambda code just as any other C# code, you can share base classes and references to common functionality, either by directly referencing the common functionality or by using NuGet packages. If all of your lambda functions are in the same repository extract the common code to classes/functions in a base project and reference that code from your Lambda functions or publish a NuGet package with the common code to be used by your Lmabda functions.
answered a month ago
Relevant questions
How to deploy 4 lambdas in typescript using a code pipeline ?
asked 2 months agoUsing Lambdas with Cognito
asked 13 days agoDoes SQS can invoke Lambda functions asynchronously ?
asked 2 years agoPackaging Lambda functions into a Cloud formation Template for sharing and deployment
asked 5 months agoHow can we create thousands of Lambdas, beyond quota limits?
asked 2 months agoDo Lambda functions called inside Step Functions still have a 250MB package limit?
Accepted Answerscript to update python runtime from 3.6 to 3.9 in lambda functions
Accepted Answerasked 10 days agoHow can I lock my Lambda function to prevent accidental changes?
Accepted Answerasked 3 years agoStructure of Repositories for Resource creation and lambdas
asked a month agoReusing C# Lambda functions
Accepted Answerasked a month ago
There are specific instructions for deploying C# layers in the documentation.