Building Lambda functions with C# - AWS Lambda

Building Lambda functions with C#

The following sections explain how common programming patterns and core concepts apply when authoring Lambda function code in C#.

You can run your .NET application in Lambda using the managed .NET 6 or .NET 8 runtimes, a custom runtime, or a container image. After your application code is compiled, you can deploy it to Lambda either as a .zip file or a container image.

Lambda provides the following runtimes for .NET languages:

.NET
Name Identifier Operating system Deprecation date Block function create Block function update

.NET 8

dotnet8

Amazon Linux 2023

.NET 7 (container only)

dotnet7

Amazon Linux 2

May 14, 2024

.NET 6

dotnet6

Amazon Linux 2

Nov 12, 2024

Jan 11, 2025

Feb 11, 2025

Note

For end of support information about .NET Core 3.1, see Runtime deprecation policy.