-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does lambda support asp.net core 6? Does documentation need updating? #1107
Comments
Hi @SamuelCox, Good morning. Thanks for posting guidance question. Could you please refer the blog post Introducing the .NET 6 runtime for AWS Lambda which has steps on migrating to .NET 6 and see if it helps. Thanks, |
Hi, as I mentioned, that document simply says to upgrade to Amazon.Lambda.* version 7.0.1. If that's all that's expected then the problem is on my side, that's fine. |
@SamuelCox Yes, it would be good to get https://github.com/aws/aws-lambda-dotnet/blob/ba7a655f8c316bdd078ef8b0db6b1746c61584e3/Libraries/src/Amazon.Lambda.AspNetCoreServer/README.md updated for .NET 6. |
For .NET 6, this seems to be the way to set up - https://github.com/aws/aws-lambda-dotnet/tree/master/Libraries/src/Amazon.Lambda.AspNetCoreServer.Hosting |
Per discussion with the team, we should document when to use minimal API and when Blog post Introducing the .NET 6 runtime for AWS Lambda on how to use minimal API. |
Fixed by PR #1784 |
Comments on closed issues are hard for our team to see. |
The Question
I have tried to update an asp.net core 3.1 lambda to .net 6, and unfortunately following aws' documentation the lambda fails to start, giving me 502 bad gateway.
The official docs just say to upgrade to Amazon.Lambda.* 7.0.1, and this readme: https://github.com/aws/aws-lambda-dotnet/blob/ba7a655f8c316bdd078ef8b0db6b1746c61584e3/Libraries/src/Amazon.Lambda.AspNetCoreServer/README.md states nothing for .net 6
Logs:
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
284
2022-03-08T23:20:42.762+00:00
at LambdaEntryPoint..ctor()
285
2022-03-08T23:20:42.762+00:00
at Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction..ctor()
286
2022-03-08T23:20:42.762+00:00
at Amazon.Lambda.AspNetCoreServer.AbstractAspNetCoreFunction
2..ctor(StartupMode startupMode) 287 2022-03-08T23:20:42.762+00:00 at Amazon.Lambda.AspNetCoreServer.AbstractAspNetCoreFunction
2.Start()288
2022-03-08T23:20:42.762+00:00
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
Environment
This is a ❓ general question
The text was updated successfully, but these errors were encountered: