Тёмный
No video :(

Run your ASP.NET Minimal API on AWS Lambda in 10 minutes 

James Eastham
Подписаться 3,9 тыс.
Просмотров 3,1 тыс.
50% 1

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@markcoleman8579
@markcoleman8579 Год назад
Great video James. Any chance you can increase the font size in future videos so that they're easier to view on a tablet?
@serverlessjames
@serverlessjames Год назад
Yes, absolutely. That's great feedback thanks Mark 👍
@bo44arov
@bo44arov Год назад
thanks for this tutorial! really useful!
@serverlessjames
@serverlessjames Год назад
You're welcome!
@hki6mq
@hki6mq Год назад
Hey James, any advice on how to deploy this using CDK?
@serverlessjames
@serverlessjames Год назад
There's a great blog post on the AWS blogs that talk through how to deploy .NET with the CDK ☺️ aws.amazon.com/blogs/modernizing-with-aws/build-package-publish-dotnet-csharp-lambda-functions-aws-cdk/
@stavvers
@stavvers Год назад
Hey James, great video. Question, I have done everything apart from set up a proxy. When I try to access the weatherforecast route I get a 404 and the following error when invoking from visual studio { "errorType": "NullReferenceException", "errorMessage": "Object reference not set to an instance of an object.", "stackTrace": [ "at Amazon.Lambda.AspNetCoreServer.APIGatewayHttpApiV2ProxyFunction.MarshallRequest(InvokeFeatures features, APIGatewayHttpApiV2ProxyRequest apiGatewayRequest, ILambdaContext lambdaContext)", "at Amazon.Lambda.AspNetCoreServer.AbstractAspNetCoreFunction`2.FunctionHandlerAsync(TREQUEST request, ILambdaContext lambdaContext)", "at Amazon.Lambda.RuntimeSupport.HandlerWrapper.c__DisplayClass26_0`2.d.MoveNext()", "--- End of stack trace from previous location ---", "at Amazon.Lambda.RuntimeSupport.LambdaBootstrap.InvokeOnceAsync(CancellationToken cancellationToken)" ] } Is this due to the proxy not being set up?
@serverlessjames
@serverlessjames Год назад
Great question Andy! What exactly are you passing as the input payload when you're invoking the function from Visual Studio? Under the hood, the AWS tooling is translating what it's expecting to be an API Gateway input payload into a request it can pass to ASP.NET (that's what the marshall request method does). If you invoke the function with say, a string of 'Hello World' that deseriailzed object will be null, causing an object reference error. If you @ me on twitter I can send a quick video
Далее
Building a Serverless REST API in .NET with AWS Lambda
20:13
Should You Run An Entire Web Application in AWS Lambda?
13:19
HTTP Polling vs SSE vs WebSocket vs WebHooks
22:22
Просмотров 2,1 тыс.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
When RESTful architecture isn't enough...
21:02
Просмотров 272 тыс.
The Easiest Way to Create Serverless APIs in .NET
18:14