VS 2019 has the .NET 5 container images and VS 2022 has the .NET 6 container images. I suspect there is some confusion on how to get to the AWS Lambda blueprints in VS.
To see the blueprints in Visual Studio:
- Select "Create a new project" in the VS splash screen or from the shell menu "File -> New -> Project"
- In project template search box enter "AWS Lambda".
- Select either "AWS Lambda Project (.NET Core - C#)" or "AWS Lambda Project (.NET Core - F#)". If you have the Amazon.Lambda.Templates NuGet package installed for the .NET CLI that might be adding additional entries into the list which could be confusing.
- Enter project name and push Create
- The Lambda blueprint wizard will popup. Select the ".NET 5 (Container Image)" blueprint and push finish
That will create the .NET 5 project with the appropriate Docker file. If this doesn't work for me let me know which step is showing you a different results.
We just released .Net 6 support both as container image and as a managed runtime. We do not have official support for .Net 5.
Lambda .net 5 container not an option in aws toolkit blueprintsasked 5 months ago
Pre token generation lambda trigger is not working properly in .Net core.asked 5 months ago
Open Source .NET Framework that abstract out AWS CDK calls to EventBridgeAccepted Answerasked 4 months ago
design suggestions to modernize .Net applicationasked 5 months ago
AWS Cognito - .NET Frameworkasked 2 months ago
Profile option on AmazonS3Clientasked 3 months ago
[Announcement] AWS Lambda now provides a .NET 6 managed runtimeasked 5 months ago
AWS Lambda not generating same HMAC as client (NET CORE 2.1)asked 4 years ago
Updating /etc/hosts File in Lambda Containerasked 3 hours ago
when to use ECR in lambda ?asked 4 months ago