I am trying to leverage the .net core 2.0 for AWS lambda and could not find any documentation for its support for same.
Has anyone tried lambda targetting .net core 2.0 or is it supported?
NET 6 runtime now available in AWS Lambda. To build and deploy Lambda functions using . NET 6, use the . NET Core CLI, AWS Toolkit for Visual Studio, or AWS Serverless Application Model (AWS SAM).
AWS Lambda provides the following libraries for C# functions: Amazon. Lambda. Core – This library provides a static Lambda logger, serialization interfaces and a context object.
From the blog post Updates for .NET Core Lambda Libraries (8 May 2017):
Lambda supports .NET Core 1.0. If you add a dependency to your .NET Core project that requires .NET Core 1.1, the .NET Core publishing tooling used by Amazon.Lambda.Tools will run without errors. However, when you run the function you’ll get errors because of the incompatibility. In version 1.5.0 of Amazon.Lambda.Tools we added validation on top of the .NET Core publishing tool to ensure that none of the dependencies for the project require a later runtime than Lambda supports.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With