.NET 7 native AOT with AWS SAM

Опубликовано: 18 Февраль 2026
на канале: James Eastham
1,237
26

In this video you will learn how you can use .NET 7 on AWS Lambda using native Ahead of Time Compilation with the AWS Serverless Application Model.

AWS Lambda will not support .NET 7 as a managed runtime as it is not an long term support release. However, with NativeAOT compilation going GA this opens up the possibility of running .NET applications on Lambda using a custom runtime.

AWS SAM released support in version 1.64 to support compiling and deploying .NET applications using .NET 7 and native AOT. The released included templates to enable you to quickly get started.

00:00 - Introduction
00:35 - Getting started with sam init
01:45 - Template walk through
03:15 - SAM template changes
04:45 - Compiling with SAM build
06:00 - Viewing build logs
08:00 - Deploying with SAM deploy
08:40 - Native AOT Performance

AWS SAM - https://aws.amazon.com/serverless/sam/
NativeAOT - https://learn.microsoft.com/en-us/dot...
Benchmarks - https://github.com/aws-samples/server...
Code Sample - https://github.com/aws-samples/server...
AWS SAM with .NET Playlist -    • Build serverless application using .NET 6 ...  

Web - https://serverlessdotnet.dev
Twitter -   / plantpowerjames  
LinkedIn -   / james-eastham