No video

Application Load Balancer Setup to Point to Your AWS EC2 Instance

  Рет қаралды 26,930

Code Raiders

Code Raiders

Күн бұрын

Now that you have a website up and running on your AWS EC2 instance, it is time to setup a load balance which will take care of managing traffic, allowing our domain to function properly and to automate SSL without breaking a sweat. AWS Application Load Balancers are very powerful and have made a big difference to my hosting workflow. They are one of the reasons I like to host my site on AWS.

Пікірлер: 57
@iamGobinda
@iamGobinda 11 күн бұрын
one simple video ...solved my problem
@ashishd4275
@ashishd4275 5 ай бұрын
This tutorial helped me a lot to setup the load balancer quickly for my app. Real life saver. Thank you so much❤
@agape_logos
@agape_logos 4 ай бұрын
I've been trying to set up unsuccessfully my website with a load balancer to serve HTTPS and you saved me! Thank you a lot!
@ideategudy
@ideategudy 2 ай бұрын
Solid tutorial here... Followed along till the end from the previous video.. Would love for a tutorial hosting on ecs, thanks
@alessio_uu
@alessio_uu 5 ай бұрын
Excellent tutorial, it helped me a lot... thanks buddy!
@paulezekiel-hart733
@paulezekiel-hart733 Жыл бұрын
Thanks for this video, this is exactly what I needed, I've been on this for over 4 days now
@coderaiders-yt
@coderaiders-yt 11 ай бұрын
Amazing! Really glad it helped you and believe me when I say...I know the feeling!
@adeditz3607
@adeditz3607 Жыл бұрын
I have struggled in this video , i got solution, thanks you very much
@coderaiders-yt
@coderaiders-yt 11 ай бұрын
Glad to hear that you figured it out!
@stefanbe5138
@stefanbe5138 2 ай бұрын
@@coderaiders-yt I will try this solution
@PaulAilincai
@PaulAilincai 3 ай бұрын
Thanks a lot. Now, considering that public IPs are chargeable, would be interesting to see an update of this running with EC2s without public IPs, behind ALB.
@stefanbe5138
@stefanbe5138 2 ай бұрын
use elastic IP on your EC2 instance
@PaulAilincai
@PaulAilincai 2 ай бұрын
@@stefanbe5138 those are chargeable
@user-es9es8gm7l
@user-es9es8gm7l 2 ай бұрын
Would love to see VPC version of this :D
@johnbischoff6320
@johnbischoff6320 Жыл бұрын
This tutorial was great! Thank you!!!!
@coderaiders-yt
@coderaiders-yt Жыл бұрын
Thanks for the positive feedback!
@the_street_coder4433
@the_street_coder4433 10 ай бұрын
Thanks mahn, this video really helped me.
@coderaiders-yt
@coderaiders-yt 8 ай бұрын
Great to hear!
@douglascampos5363
@douglascampos5363 5 күн бұрын
your application is running on which port? my is on port 8081 i must set port 8081 or 80 in target group for the healthcheck work
@PatrickMcDonoughVanWash
@PatrickMcDonoughVanWash 4 ай бұрын
Great tutorial! My question is what did you do with the 'u' in 'McDonough'?🤪
@TheBlackChessAuthority
@TheBlackChessAuthority 5 ай бұрын
Excellent content
@sergey5561
@sergey5561 2 ай бұрын
Which rules does the "allow-public-internet-access" security group contain?
@itumelengseeco2844
@itumelengseeco2844 8 ай бұрын
This video is very informative, thank you!!
@geovajonnathacorreia559
@geovajonnathacorreia559 11 ай бұрын
thank you very much for your video
@coderaiders-yt
@coderaiders-yt 11 ай бұрын
Glad it was helpful!
@shahmir3899
@shahmir3899 11 ай бұрын
thank you for your video. I have just one question. When creating A record (09:32), I already have one A record for redirecting traffic to IP (Public address of EC2). I cannot create another A record.
@coderaiders-yt
@coderaiders-yt 8 ай бұрын
If I understand correctly, it is best to have one A record pointing to the load balancer, then have the load balance perform the redirect to whichever target groups you set up.
@piyushaggarwal5207
@piyushaggarwal5207 5 ай бұрын
I have an EC2 instance with two docker containers - frontend nextjs and backend nodejs. I have given frontend code our backend IP address with port. Now, that IP shows up in network in devtools. How would you suggest I tackle this? What are the best practices.
@user-uv3tt5fy5q
@user-uv3tt5fy5q 3 ай бұрын
I have similar problem where i have 2 container of multistage docker React with Nginx and nodejs. They both are connected in http but when i try to apply letsencrypt using an external default,conf file to run as docker compose file along with the SSL certificate to be coppied into the container wile running, is such a mess. thats why this video is helpfull ofr me where you can buy SSL certificate using ACM and route 53 where the SSL is applied to the ALB and then SSL terminatino can happen without us needing to touch the instance or the running container.
@neilaspin008
@neilaspin008 Ай бұрын
I just cannot get the load balancer to work.
@SRIKANTHKANDULA75
@SRIKANTHKANDULA75 9 ай бұрын
I followed your way, but still not redirecting to https
@user-es9es8gm7l
@user-es9es8gm7l 2 ай бұрын
at 2:20, why not use HTTP/2 instead of HTTP/1.1?
@user-uv3tt5fy5q
@user-uv3tt5fy5q 3 ай бұрын
can you reveal the Security group you used in this video please
@user-dt8ww3no3m
@user-dt8ww3no3m 4 ай бұрын
once you create that hosted zone you need to by that domanin from registered domains or this method is completly free ?
@maheshgage285
@maheshgage285 Ай бұрын
What is source ip to communicate target instances??
@jay5902
@jay5902 Жыл бұрын
Another great video. Thabk you for your time Do you have a link to the information you mentioned for hosting on a private subnet? Also, a video showing stripe/paypal integration would be very interesting.
@coderaiders-yt
@coderaiders-yt Жыл бұрын
You might find this useful: kzfaq.info/get/bejne/nrVgZpmnmbTagX0.html
@adamtang5148
@adamtang5148 Жыл бұрын
Hmm... a lot of thing doesn't make sense. The ELB is pointing to EC2 which contain self copy of rproxy, frontend and even backend. If there are 3x EC2, there are 3x self copy of rproxy, frontend and even backend...
@coderaiders-yt
@coderaiders-yt 11 ай бұрын
There are not x3 EC2. Just one. But if you run 3 EC2, you can have load balancer rotate in pointing to them.
@theproton4874
@theproton4874 8 ай бұрын
I progressed well to the end, but couldn't create an a record for the alias settings because there's an existing A record connected to the IP address from ec2. any kind of assistance is appreciated.
@coderaiders-yt
@coderaiders-yt 8 ай бұрын
You can try having just one A record pointing to the load balancer. If using NGINX, make sure it is pointing to localhost, or the private IP address (not the public one). Not sure if this helps.
@matthewsmithwarren2
@matthewsmithwarren2 Жыл бұрын
This was helpful. If my EC2 app is already using Gunicorn and Nginx as a reverse proxy can I still use your method of wrapping with ELB? My understanding of how those port configurations might conflict is thin so I’d appreciate any context.
@coderaiders-yt
@coderaiders-yt 11 ай бұрын
If you are doing it solely on your one instance and using a load balancer within NGINX, you would need your applications to run on something like docker. If you are using NGINX as a reverse proxy and then using the AWS ELB to point to your machine, I see know reason why this would not work. But you can test it. If you see the website showing when putting in the public domain with http (notice I did not say https, so my.ip.address), then it is working and the ELB should point to it.
@MrVasco07
@MrVasco07 7 ай бұрын
Perfecto
@jaanu2809
@jaanu2809 Ай бұрын
Certificate not created what to do Anyone plz
@vratantsingh2132
@vratantsingh2132 6 ай бұрын
my requested certificate is not coming in the dropdown
@eugensunic
@eugensunic Жыл бұрын
You configured 80 to 443 redirection, but you haven't demonstrated that. Also on 8.13 you say that http will forward to https which is not true. It seems that you do not understand the difference between forwarding which means mapping or converting from one port to another thus disabling the forwarded port whereas redirect does not.
@coderaiders-yt
@coderaiders-yt Жыл бұрын
The load balancer is set up to receive requests in at port 80 and there is a redirect set up to go to port 443 on the port 80 configuration of the load balancer.
@paulezekiel-hart733
@paulezekiel-hart733 Жыл бұрын
Love your videos, i'm getting a 502 error after following this steps, is there a solution for this?
@coderaiders-yt
@coderaiders-yt 11 ай бұрын
502 will mean that probably when NGINX is trying to point to, is not running. Test the application is running first.
@dazzler9264
@dazzler9264 Жыл бұрын
Great
@coderaiders-yt
@coderaiders-yt Жыл бұрын
💪
@user-oe4mc5pl6s
@user-oe4mc5pl6s Жыл бұрын
Hello thanks for your tutorial, Ihave a trouble with this error : ERR_SSL_PROTOCOL_ERROR, Please i need help if you can, thanks in advance.
@coderaiders-yt
@coderaiders-yt Жыл бұрын
Hi there did you get this resolved?
@witty__wat
@witty__wat 10 ай бұрын
Does your backend server for your website also exist on ec2 instances?
@coderaiders-yt
@coderaiders-yt 8 ай бұрын
Yes. I find EC2 the best value for money.
Кадр сыртындағы қызықтар | Келінжан
00:16
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 19 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 110 МЛН
How to Install WHM or cPanel and AWS EC2 Instance
10:04
XAdmin
Рет қаралды 3,3 М.
How to Setup AWS ECS Fargate with a Load Balancer | Step by Step
27:33
Be A Better Dev
Рет қаралды 170 М.
How to Point your Domain to EC2 Instance using Route 53
9:39
Koding 101
Рет қаралды 40 М.
Reverse Proxy vs API Gateway vs Load Balancer
3:06
ByteByteGo
Рет қаралды 117 М.
AWS Load Balancer Masterclass: Complete Setup & Demo - Part 19
21:13
Top 50+ AWS Services Explained in 10 Minutes
11:46
Fireship
Рет қаралды 1,5 МЛН