AWS Lambda (.NET 8 -> .NET 10)

[AWS Lambda] End of support for .NET 8 (dotnet8) runtime in AWS Lambda

[AWS Lambda] End of support for .NET 8 (dotnet8) runtime in AWS Lambda

What it means

AWS deprecated the dotnet8 Lambda runtime on November 10, 2026 following Microsoft's end of support for .NET 8.

Why it happens

Per the AWS Lambda runtime deprecation table, `dotnet8` stopped receiving AWS security and runtime updates on 2026-11-10, with new function creation blocked on 2027-07-29 and function updates blocked on 2027-08-31. Both `dotnet8` and `dotnet10` run on Amazon Linux 2023, so OS-level glibc stays consistent while target frameworks and Lambda NuGet packages must advance.

How to fix it

  1. Update every Lambda `.csproj` file from `<TargetFramework>net8.0</TargetFramework>` to `<TargetFramework>net10.0</TargetFramework>`.
  2. Update `aws-lambda-tools-defaults.json` (`"function-runtime": "dotnet10"`), SAM/CloudFormation (`Runtime: dotnet10`), CDK (`Runtime.DOTNET_10`), or Terraform (`runtime = "dotnet10"`).
  3. Upgrade `Amazon.Lambda.Core`, `Amazon.Lambda.Serialization.SystemTextJson`, and `Amazon.Lambda.AspNetCoreServer` NuGet packages to current .NET 10 compatible versions.
  4. If using Native AOT, compile inside the matching AL2023 .NET 10 container image for the function's target architecture (`x86_64` or `arm64`).

Related deadline: Lambda .NET 8 create/update restrictions — 2027-07-29.

Scan & codemod every occurrence locally ($79)

Fixing one function by hand rarely clears the whole stack. Download the $79 Offline Migration & Audit Toolkit to run air-gapped repo/IaC audits, Python 3.12/3.13 & AWS SDK v3 codemods, AL2023 native wheel Dockerfiles, and canary rollback templates with zero source upload (US buyers only · 30-day full refund policy).

Buy $79 Offline Toolkit (Instant Download) →  Full specs & sample

Check configured patterns in your project

The free EOLkits scanner processes files in your browser and flags selected related patterns in supported IaC and dependency files. File names and contents are not uploaded; bounded aggregate file and finding counts may be sent. It is not a complete source or AWS-account scan.

Prefer a 10-second check? Paste your config into the free AWS EOL checker. Pasted input is not uploaded; bounded first-party usage events may be sent.

Primary source: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

Inspect the $299 report sample and availability →