By using AWS re:Post, you agree to the Terms of Use
/Reusing C# Lambda functions/

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?

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
1

Have a look at Lambda Layers - I think it's what you're looking for.

EXPERT
answered a month ago
0

It does not list C# in the list of languages.

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions