I have a few Lambda functions set up to use NET 6.
The lambdas are created through serverless templates and have the property:
"Runtime": "dotnet6"
By default they use Amazon Linux 2, but I want to update them to Amazon Linux 2023. I've been trying to follow this documentation without success:
The docs say that the Runtime should be changed to "provided.al2023" but that messes with specifying using NET 6 for the function.
If anyone has tried using NET 6 and AL2023, I would really appreciate if they could share their experiences.
Thank you!
AWS provides managed runtime for .NET6 Lambda functions, but the runtime still uses Amazon Linux 2 as the base image. With .NET 8, however, AWS will use Amazon Linux 3 as the base image in its managed runtime.
As per the documentation, target launch month for upcoming Lambda runtimes for .NET 8 is January 2024.
Now coming to your question, you have 2 options: