Posted On: Feb 22, 2024
AWS Lambda now supports creating serverless applications using .NET 8. This runtime is based on the latest long-term support release of .NET 8. Developers can use .NET 8 as both a managed runtime and a container base image, and AWS will automatically apply updates to the managed runtime and base image as they become available.
The Lambda .NET 8 runtime is built on the new Amazon Linux 2023 runtime, which provides a significantly smaller deployment footprint than earlier Amazon Linux 2-based runtimes, updated versions of common libraries such as glibc, and a new package manager. Powertools for AWS Lambda (.NET), a developer toolkit to implement serverless best practices and increase developer velocity, also supports .NET 8.
The .NET 8 runtime is available in all Regions where Lambda is available, except for China and GovCloud Regions.
You can use the full range of AWS deployment tools, including the Lambda console, AWS CLI, AWS Serverless Application Model (AWS SAM), CDK, and AWS CloudFormation to deploy and manage serverless applications written in .NET 8.ENnbsp;You can also run Native Ahead-of-Time (AOT) compiled applications with the .NET 8 managed runtime. To migrate existing Lambda functions running earlier .NET versions, review your code for compatibility with .NET 8 and then update the function runtime to .NET 8 when redeploying you function. You can also use the AWS-provided .NET 8 base image to build and deploy .NET 8 functions using containers. To learn more and get started, refer to this blog post.ENnbsp;For more information about AWS Lambda, visit our product page.