Application Load Balancer Setup to Point to Your AWS EC2 Instance

Поділитися
Вставка
  • Опубліковано 15 лют 2023
  • 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.

КОМЕНТАРІ • 48

  • @agape_logos
    @agape_logos Місяць тому

    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!

  • @ashishd4275
    @ashishd4275 2 місяці тому +1

    This tutorial helped me a lot to setup the load balancer quickly for my app. Real life saver. Thank you so much❤

  • @alessio_uu
    @alessio_uu 2 місяці тому +1

    Excellent tutorial, it helped me a lot... thanks buddy!

  • @paulezekiel-hart733
    @paulezekiel-hart733 9 місяців тому

    Thanks for this video,
    this is exactly what I needed, I've been on this for over 4 days now

    • @coderaiders-yt
      @coderaiders-yt  9 місяців тому

      Amazing! Really glad it helped you and believe me when I say...I know the feeling!

  • @johnbischoff6320
    @johnbischoff6320 Рік тому

    This tutorial was great! Thank you!!!!

  • @TheBlackChessAuthority
    @TheBlackChessAuthority 2 місяці тому

    Excellent content

  • @the_street_coder4433
    @the_street_coder4433 7 місяців тому

    Thanks mahn, this video really helped me.

  • @itumelengseeco2844
    @itumelengseeco2844 6 місяців тому

    This video is very informative, thank you!!

  • @PatrickMcDonoughVanWash
    @PatrickMcDonoughVanWash Місяць тому

    Great tutorial! My question is what did you do with the 'u' in 'McDonough'?🤪

  • @geovajonnathacorreia559
    @geovajonnathacorreia559 9 місяців тому

    thank you very much for your video

  • @adeditz3607
    @adeditz3607 9 місяців тому

    I have struggled in this video , i got solution, thanks you very much

    • @coderaiders-yt
      @coderaiders-yt  9 місяців тому

      Glad to hear that you figured it out!

    • @stefanbe5138
      @stefanbe5138 3 дні тому

      @@coderaiders-yt I will try this solution

  • @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  11 місяців тому

      You might find this useful: ua-cam.com/video/hO036v4NvQI/v-deo.html

  • @matthewsmithwarren2
    @matthewsmithwarren2 9 місяців тому

    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  9 місяців тому +2

      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.

  • @user-dt8ww3no3m
    @user-dt8ww3no3m Місяць тому

    once you create that hosted zone you need to by that domanin from registered domains or this method is completly free ?

  • @shahmir3899
    @shahmir3899 8 місяців тому +1

    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  5 місяців тому

      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.

  • @PaulAilincai
    @PaulAilincai Місяць тому

    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 3 дні тому

      use elastic IP on your EC2 instance

    • @PaulAilincai
      @PaulAilincai 3 дні тому

      @@stefanbe5138 those are chargeable

  • @piyushaggarwal5207
    @piyushaggarwal5207 2 місяці тому +1

    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 18 днів тому +1

      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.

  • @witty__wat
    @witty__wat 8 місяців тому

    Does your backend server for your website also exist on ec2 instances?

    • @coderaiders-yt
      @coderaiders-yt  5 місяців тому

      Yes. I find EC2 the best value for money.

  • @MrVasco07
    @MrVasco07 4 місяці тому

    Perfecto

  • @paulezekiel-hart733
    @paulezekiel-hart733 9 місяців тому

    Love your videos,
    i'm getting a 502 error after following this steps, is there a solution for this?

    • @coderaiders-yt
      @coderaiders-yt  9 місяців тому

      502 will mean that probably when NGINX is trying to point to, is not running. Test the application is running first.

  • @theproton4874
    @theproton4874 6 місяців тому

    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  5 місяців тому

      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.

  • @user-uv3tt5fy5q
    @user-uv3tt5fy5q 18 днів тому

    can you reveal the Security group you used in this video please

  • @SRIKANTHKANDULA75
    @SRIKANTHKANDULA75 6 місяців тому +1

    I followed your way, but still not redirecting to https

  • @dazzler9264
    @dazzler9264 Рік тому

    Great

  • @vratantsingh2132
    @vratantsingh2132 3 місяці тому

    my requested certificate is not coming in the dropdown

  • @user-oe4mc5pl6s
    @user-oe4mc5pl6s 10 місяців тому

    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.

  • @adamtang5148
    @adamtang5148 9 місяців тому

    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  9 місяців тому

      There are not x3 EC2. Just one. But if you run 3 EC2, you can have load balancer rotate in pointing to them.

  • @eugensunic
    @eugensunic 10 місяців тому

    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  10 місяців тому

      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.