Serverless ASP.NET Core Web API with AWS Lambda | Super Affordable .NET Hosting
HTML-код
- Опубликовано: 3 авг 2024
- Get $25 FREE AWS Credit from bit.ly/aws-mukesh
Hosting ASP.NET Core WebAPI in AWS Lambda is way more powerful than you might think. Superior Performance, Auto Scaling Resources, and Super Affordable Pricing. In fact, you get almost 1 Million FREE Requests per month with AWS Lambda. In this video, we will explore and learn this approach.
Chapters ⌚
0:00 - Introduction
1:07 - Prerequisites
1:51 - Building a .NET 8 Web API
3:10 - Installing the Lambda Hosting Package
4:35 - Deploying ASP.NET Core Web API to AWS Lambda with CLI
6:33 - Function URLs
8:18 - Environment Variables
9:31 - Loading Configurations from JSON
12:20 - Products API
17:39 - When to deploy ASP.NET Core Web API to AWS Lambda
20:05 - Outro
This video is sponsored by AWS and is a part of my ongoing .NET on AWS series: • .NET on AWS
Read the text version of this video here: codewithmukesh.com/blog/hosti...
Get your free AWS Account from here - aws.amazon.com/free
🚀 .NET on AWS Series GitHub Repository: github.com/iammukeshm/dotnet-...
⭐ Support my Work:
www.buymeacoffee.com/codewith...
✉️ Join my .NET newsletter:
codewithmukesh.com/subscribe-...
Let's Connect!
😎 My Blog: codewithmukesh.com/
🔥 LinkedIn: / iammukeshm
🎫 X: / iammukeshm
🐦 Facebook: / codewithmukesh
📸 Instagram: / iammukeshm
#dotnet #aws #serverless Наука
great video, thanks Mukesh, really clear explanation. What a cool feature.
Thanks Mukesh!
Thank you for this Tutorial
You are welcome!
Hey Mukesh, nice presentation 😊
Thank you so much 🙂
Great tutorial, but I got internal server error after deployed, in cloud watch it said some dll not found, please help
Nice walkthrough. Will Web API (Native AOT( supports this deployment. Please provide guide on that.
I enjoyed your tutorial, condensed and to the point. Just a request, the background music is very distracting and I couldn't concentrate, didn't work well when speeding up the video, you can check with other's opinion but I haven't come across any learning sites (udemy, pluralsight, linkedin etc,.) that adds background music to coding tutorials.
Thanks a lot for the feedback. Yes I too realized that it might be a bit distracting. Will sort this out in the next video.
@codewithmukesh thanks for replying. A lot of people with hearing difficulties and some kind of autism will also have problems with background music. Perhaps you can do a few seconds of music at start and then remove it.
Awesome 💯
Thanks 🔥
Jesus, at first when you said about the 1mln requests, I thought that you ment 0.2$ per EACH additional request, not per each milion. I almost died from heart attack when i heard this 🤯 But yeah, 1 mln requests for 0.2$ does seam affordable.
Good tutorial, i have a question regarding ideal mode application
How do I avoid going for the ideal mode application? is there any solution to avoid this
Hello Mukesh, nice tutorial. I am running into an error when publishing with the CLI from Visual Studio Code at 5:27 on your video. It seems I cannot get the AIM security credentials: Error retrieving configuration for function whosaroundbackend: Unable to get IAM security credentials from EC2 Instance Metadata Service.
Any ideas?
Nice video. One of the first I have seen on .NET 8. Being new to AWS Lambda what are you using to test your functions locally? From what I understand the SAM CLI tool only supports .NET 6 still. Any guidance or suggestions would be much appreciated.
SAM CLI supports .NET 8 too. Please refer - aws.amazon.com/blogs/compute/introducing-the-net-8-runtime-for-aws-lambda/
To test the lambda locally, you can use the Amazon.Lambda Mock Tool. github.com/aws/aws-lambda-dotnet/tree/master/Tools/LambdaTestTool This is more than enough to test your Lambdas.
Good 👍
Thanks
Good solution thank you so much bhai. I have a question, i had to deploy frontend what should i do?
Thanks! What kind of frontend are you trying to deploy. You have several solutions ranging from S3 Static Uploads, Dockerized Apps, AWS Amplify. Totally depends on your use case.
@@codewithmukesh simple frontend for live api monitoring..which can be developed in angular.
Can we create a lambda at each controller level?
can i use .NET 7?
this is good for minimal api. how to deploy and run api for controllers and multiple api endpoints
?
The same is applicable for controllers too.
Please avoid background music it is really annoying
Yes, will fix this in the next video. Thanks for the feedback.
👌
.NET 8 series chalu hua kya nhi?
🙌
How do you get an AWS account. I’ve tried 3 times with 3 different emails. Still no luck! Keeps asking for a code to login in with - no code just an Email with a link. I’ve given up. Carlo