Maintained with ☕️ by
IcePanel logo

AWS Lambda adds support for .NET 6

Share

Services

AWS Lambda now supports .NET 6 as both a managed runtime and a container base image. Developers creating serverless applications in Lambda with .NET 6 can take advantage of new features such as improved logging, simplified function definitions using top-level statements, and improved performance using source generators. Using .NET 6 also lets you take advantage of [new .NET language features and performance optimizations.](https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-6) For more information on Lambda’s support for .NET 6, see our blog post at [.NET 6 runtime now available in AWS Lambda.](https://aws.amazon.com/blogs/compute/introducing-the-net-6-runtime-for-aws-lambda/) To build and deploy Lambda functions using .NET 6, use the [.NET Core CLI](https://docs.aws.amazon.com/lambda/latest/dg/csharp-package-cli.html), [AWS Toolkit for Visual Studio](https://docs.aws.amazon.com/lambda/latest/dg/csharp-package-toolkit.html), or [AWS Serverless Application Model (AWS SAM)](https://github.com/awslabs/serverless-application-model). Additionally, you can also use the [AWS-provided .NET 6 base image](https://docs.aws.amazon.com/lambda/latest/dg/csharp-image.html) to build and deploy .NET 6 functions using a container image. To migrate existing Lambda functions running earlier .NET versions, see the blog post linked above. .NET 6 is the latest long-term support (LTS) release of .NET and will be supported for security and bug fixes until November 2024\. AWS will automatically apply updates to the .NET 6 managed runtime and to the AWS-provided .NET 6 base image, as they become available. The .NET 6 runtime is available in all [Regions where Lambda is available](/about-aws/global-infrastructure/regional-product-services/), except for the AWS China Regions. Visit our [product page](/lambda/) for more information about AWS Lambda or sign in to the [AWS Lambda console](https://console.aws.amazon.com/lambda/home) to get started.