AWS Linux EC2 ASP.Net Core Application

  Рет қаралды 15,744

Jon Jensen

Jon Jensen

Күн бұрын

This video will show you how to install .Net Core on AWS Linux, deploy a .Net Core application to AWS, configure Apache to work with Kestrel and access the application from outside of AWS.

Пікірлер: 45
@themasterrogerdelgado
@themasterrogerdelgado 4 жыл бұрын
This was an amazing tutorial Jon. Thank you! Just to save a lot of time for others, with .NET Core 3.1, there is a default to redirect http -> https. You MUST disable port 5001 (https) OR only use https for these instructions to work. Otherwise you'll get a 502 from the browser and a 302 in your ssh test session that redirects to a port that nobody is listening on.
@shanekhantsoemoe4996
@shanekhantsoemoe4996 4 жыл бұрын
Thanks Bret. You saved a lot of my time.
@stephancisco230
@stephancisco230 4 жыл бұрын
Thank you for the detailed work .....I really appreciate your work...Please keep us posted ....
@telejonjensen
@telejonjensen 4 жыл бұрын
Thank you! Will do!
@herveclaveau
@herveclaveau 5 жыл бұрын
This video is a little old but everything works like a charm, thank you very much !
@telejonjensen
@telejonjensen 5 жыл бұрын
Hi Herve, Thanks! Jon
@arsamrahmaan8812
@arsamrahmaan8812 3 жыл бұрын
thanks man. Love from Pakistan
@hirankailas
@hirankailas 5 жыл бұрын
Thanks Jon.Great effort.It helped me to host the application.
@joepadz2001
@joepadz2001 5 жыл бұрын
Many thanks very helpful.
@telejonjensen
@telejonjensen 5 жыл бұрын
Hi Joel, Thanks for watching! Jon
@ITibalt
@ITibalt 3 жыл бұрын
Oh, it's beautiful
@SantoshChenreddy
@SantoshChenreddy Жыл бұрын
Actually this is wonderful to watch such an easing video. I have a frontend and backend app. I would like to host this ASP.netcore app on Amazon linux 2 machine and I want to hit frontend at port 3000 and backend at 80. Please suggest how we can do that as the ports I am gonna use are in reverse here. Thanks in advance. Hope, you can figure this and assist me and as I am doing this at the hour of emergency
@pogromcagoblinow
@pogromcagoblinow 3 жыл бұрын
Nice one
@telejonjensen
@telejonjensen 3 жыл бұрын
Thanks 🔥
@RK-hello
@RK-hello 4 жыл бұрын
What if there is websocket protocol running on the ASP.NET application on ws://localhost:5000/ws ? How do we handle that on the reverse proxy?
@raririm111
@raririm111 3 жыл бұрын
I upload my compiled code to t2.micro with 7 Kb/s during the 20 minutes. Is this normal for t2 insances or my network has the problem ?
@CafeAsp
@CafeAsp 6 жыл бұрын
Good Job!
@telejonjensen
@telejonjensen 6 жыл бұрын
Hi, Thanks for watching!
@farrukhmask
@farrukhmask 4 жыл бұрын
I need to do CI/CD From Bitbucket Pipeline , could you help.
@gurbrindersingh5737
@gurbrindersingh5737 5 жыл бұрын
thanks
@joseandrescabrerabenetto6651
@joseandrescabrerabenetto6651 5 жыл бұрын
Hi Jon, great videos! They are very usefull. I have two doubths about .net core and the ec2 linux ami machine. The first one is how I can set up the HTTPS in my app? And the other doubth is about how I can leave the dotnet app running and close the sesssion in PuTTY?
@telejonjensen
@telejonjensen 5 жыл бұрын
Hi Jose, You should be able to set up https on the server and then look at this: docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-2.2&tabs=visual-studio You can have the service start up as part of the server startup so you can disconnect. Jon
@progressive2023
@progressive2023 4 жыл бұрын
Thanks for a good video. Just a quick question: what if I stop the SSH session. My service stop working. I want it to be running after I close the SSH session on the server.
@telejonjensen
@telejonjensen 4 жыл бұрын
Hi Raman, I'm not sure what you mean. If your service requires SSH you will need to have that enabled for it to work. Let me know if that doesn't answer the question. Jon
@progressive2023
@progressive2023 4 жыл бұрын
Jon Jensen thanks for the reply, John. All I want is to access the application from Internet. When I SSH the EV2 instance, I am able to access the application running inside ec2 but now I want to access it from internet. But now I don’t need to access the ec2 so disconnecting the connection. But now can’t access my application from the url provided on browser.
@gosaikv
@gosaikv 6 жыл бұрын
Yes i have same question !!
@azzamqumsieh3304
@azzamqumsieh3304 6 жыл бұрын
I did solve the problem if you need help I can give you hand with that @krunal gosai
@gosaikv
@gosaikv 6 жыл бұрын
Azzam Qumsieh yah sure please send instructions or details on gosaikv@gmail.com
@raul1793
@raul1793 6 жыл бұрын
Hello Jon, First of all, many thanks for the video. I would like to ask you if you know how to detect when the dotnet core webservice published in the ec2 stops. Sometimes the site stops and I have to rerun dotnet WebService.dll to get it up. Can the site restart be automated?
@telejonjensen
@telejonjensen 6 жыл бұрын
Hi Raul, You can have a health check running that will do this. You can use this: docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html We also have used Apica for doing this as well. I would try to get to the bottom of why the service is stopping if possible. Thanks for watching! Jon
@visheshmahale790
@visheshmahale790 6 жыл бұрын
Sir thanks for the video, Please tell me suppose I also want a MYSQL database inside this and my app communicate with the database then what should I do.
@telejonjensen
@telejonjensen 6 жыл бұрын
Hi Vishesh, I will be doing a video on using AWS RDS soon that will answer this question. Thanks! Jon
@visheshmahale790
@visheshmahale790 6 жыл бұрын
I will be waiting for your video.
@shuchikasliwal1299
@shuchikasliwal1299 5 жыл бұрын
Hi Jon, Thanks for sharing the video, this was really helpful. I followed every step and I am able to run my app on localhost withing AWS but I am not able to access it outside, can you help me with that? Thanks :)
@telejonjensen
@telejonjensen 5 жыл бұрын
Hi Shuchi, You could allow access from the outside but you may want to host on Azure or AWS. Here are a couple of videos for AWS: kzbin.info/www/bejne/m6nGXp5ohNmYjdE kzbin.info/www/bejne/bHyvp6KejNeasLM Jon
@azzamqumsieh3304
@azzamqumsieh3304 6 жыл бұрын
Thank you for this nice Video, I have a question, how can I configure Apache to run multiple APIs projects, I have 4 API projects that I need to run on the same EC2, I tried to use DocumentRoot but without any luck, I hope you can help me with that, Thanks Again.
@telejonjensen
@telejonjensen 6 жыл бұрын
Hi Azzam, I'll try that out and post an answer. Thanks for watching! Jon
@azzamqumsieh3304
@azzamqumsieh3304 6 жыл бұрын
Hi Jon, I did find a way to do that but if you can make a video on this it will be great so others can learn how to do it too , Thank you again
@entertainmentariful5234
@entertainmentariful5234 5 жыл бұрын
Can't find the same documentation (docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x). So how to install it now?
@telejonjensen
@telejonjensen 5 жыл бұрын
Hi Ariful, .Net Core now comes installed already on EC-2 instances. Here is an updated video: kzbin.info/www/bejne/bHyvp6KejNeasLM Jon
@MrRituraj12345
@MrRituraj12345 6 жыл бұрын
Hello sir I need help I have found error: -bash: dotnet command not found When lunching application dotnet helloDemo.dll
@telejonjensen
@telejonjensen 6 жыл бұрын
Hi Ritu, It seems like .Net Core isn't installed properly? Jon
@niroopreddy6910
@niroopreddy6910 5 жыл бұрын
sudo yum install dotnet-sdk-2.1 use this
@henson2k
@henson2k 5 жыл бұрын
@@niroopreddy6910 How to install core from S3 when there is no access to internet?
@niroopreddy6910
@niroopreddy6910 5 жыл бұрын
I didn't get the question @Nikolay Kilmchuk when there is no internet how can i access to S3 nor EC2. if we need to do an offline install of Core on a local linux OS, download a core package from microsoft official site and install it boss.
Install AWS RDS - Microsoft SQL Server
13:23
Jon Jensen
Рет қаралды 57 М.
Clean Architecture with ASP.NET Core 9
27:01
dotnet
Рет қаралды 29 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 16 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 12 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 6 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 8 МЛН
Containerize .NET Core 7 Web API using Docker on AWS EC2 (Ubuntu)
13:38
Program With Akshay
Рет қаралды 3,9 М.
Deploying ASP.NET Core 3.1 App on Amazon Linux 2
24:48
Manoj Nair
Рет қаралды 6 М.
How to Deploy .Net Application to AWS EC2
20:11
Coding Paradox Tutorials
Рет қаралды 31 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 98 МЛН
Deploy a simple ASP.NET Core Web App on Linux with Nginx
12:40
Easily Deploy Full Stack Node.js Apps on AWS EC2 | Step-by-Step Tutorial
29:00
Deploy .NET with AWS CodeDeploy
29:24
Wes Doyle
Рет қаралды 9 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 16 МЛН