Create an Application Load Balancer (ALB) in AWS | AWS Elastic Load Balancing Tutorial for Beginners

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 124

  • @TinyTechnicalTutorials
    @TinyTechnicalTutorials  2 роки тому +6

    What else do you want to learn in AWS? Let me know below in the comments!

  • @a.m.1407
    @a.m.1407 8 місяців тому

    Thank you so very much. I am glad I came across your channel. Your step by step instruction are perfect. Not too much information and not too less. Most importantly, you don't assume we know some steps that may throw some of us off. Following your instructions is very easy.

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

      Awwww...this is SUCH a nice comment!! Thanks so much. Really appreciate it! 🙏🌟🤓

  • @zhihenghua2105
    @zhihenghua2105 2 роки тому +4

    Thank you so much!!! Finally found an amazing tutorial with traffic routing simulation!

  • @joshuamorillo1694
    @joshuamorillo1694 5 місяців тому

    Excellent explanation. Clear, concise, and to the point. Great work! God Bless.

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  4 місяці тому +1

      Awwwww...thank you SO much!! 🙏🌟🥰 Really appreciate the support!

  • @raimsatybaldiev8305
    @raimsatybaldiev8305 2 роки тому

    You're my favorite teacher in here!!

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

    Great video and explanation, thank you for the simple visuals!

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  21 день тому

      Awwww...thanks for watching, and for such a nice comment (and sorry for the slow response)! 🥰🔥

  • @PatrickBurkeTV
    @PatrickBurkeTV 2 роки тому +6

    user data script I used (slightly different from that in the video, but posting this in case it helps others):
    #!/bin/bash
    sudo yum update -y
    sudo yum install -y httpd.x86_64
    sudo systemctl start httpd.service
    sudo systemctl enable httpd.service
    sudo -s
    echo “Hello World from $(hostname -f)” > /var/www/html/index.html
    exit
    Great video!! Saved me a couple hours.

  • @brandonallen-santos7102
    @brandonallen-santos7102 2 роки тому +1

    Super simple explanation. Thanks for uploading!

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

    Thank you for this wonderful demo

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Місяць тому +1

      Awww...thanks so much! 😊🌟🙏

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

      @@TinyTechnicalTutorials
      Thanks to your demos and 'tiny tutorials,' I just completed a project I’m really proud of! 😅 It’s a WordPress app deployed on ECS and served through an application load balancer.
      What project would you recommend next to further improve my knowledge and experience?

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

      This is so awesome! Congrats! 🔥💪🤓 For your next project, check out the AWS Projects playlist: ua-cam.com/play/PLwyXYwu8kL0wMalR9iXJIPfiMYWNFWQzx.html. Lots of fun things there. The second video in the list needs an update (it's on my list!) so don't do that one. 😊 The "10 Projects" video has some additional ideas. And if you're looking to build skills for a job, then the "Build a Resume/CV" one is fun, and you'll end up with an actual resume when you're done. Hope that helps, and good luck! 😊

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

      @@TinyTechnicalTutorials Thank you ❤️

  • @priyankbisht6229
    @priyankbisht6229 5 місяців тому

    thanks for the quick demo.

  • @EduardoMarquez-c1p
    @EduardoMarquez-c1p 2 місяці тому

    For production, https must be used correctly. Can the change from http to https be made in some way?

  • @chetansomkuwar1188
    @chetansomkuwar1188 2 роки тому +2

    here you don't have need to create another security group for Application Load Balancer, you can easily attached instance 1's existing Security group to the Application Load balancer with >> SSH + HTTP 80/tcp >> "Source:- Anywhere IPv4".

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 роки тому +1

      Thanks for the comment, Chetan! You are correct! I could have re-used the security group that was created earlier when setting up instances.

  • @matthewsmithwarren2
    @matthewsmithwarren2 Рік тому +1

    This has been helpful. Two noteworthy things to share: 1) In the tutorial an ALB-SG was created and then added to the default. Initially, in an effort to keep things tidy, I deleted the default security group and the demo didn't work. I'm not sure how these two SG's interact but when I left the default in there, everything works. Do you know why this is? 2) My next step is to integrate a SSL certificate for HTTPS to terminate at the ALB. I'm curious to see how this plays out and if I hit any roadblocks.

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Рік тому +1

      Hi Matthew! 👋😊 Hmmm...interesting. You shouldn't be able to delete the default security group? There's really no interaction between default and the one I created. Default is just more permissive, but if you were using the new one, it should have all the right ports open to allow traffic. Here's more info on that: docs.aws.amazon.com/AWSEC2/latest/UserGuide/default-custom-security-groups.html.
      Let us know how things went with adding an SSL certificate. 💪

  • @bacanalienigena
    @bacanalienigena 2 роки тому

    All is working fine, thank you so much "obviously with some slight changes on the AWS interface but all working fine" 👏

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 роки тому

      Yay! The UI updates are a never-ending battle. Glad you got it working! :)

  • @MikeAnderson-e8e
    @MikeAnderson-e8e Рік тому

    Great Video and nice to get something working as sometimes you can watch and it doesn't always go to plan.

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

    Does LB maintain instance IP's in Target and will forward them in Roundrobin, right ? If yes, what if a new instance added to that target due to scaling how does it behaves ?

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

      Hi Lokesh! 👋 Sorry for such a slow response. Yes, the load balancer maintains the instance IPs in the target group and forwards traffic to them in a round-robin fashion. When a new instance is added due to scaling, it will automatically be included in the load balancing process once it passes the health checks. The round-robin algorithm will then distribute traffic to all healthy instances, including the newly added one. Hope that helps! 🤓

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

    Good tutorial; solved an issue I had.
    I don't find aws a very user-friendly environment; many different browser tabs to open and configure something else and return back... Not even mentioning their documentation. 😬

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

      Thanks so much, Jazz! :) This one in particular does require some round-about flows, so I'm glad it helped!

  • @sreyamuppalla9219
    @sreyamuppalla9219 Рік тому +1

    In the Network Mapping(5:57) part of the video, is there a reason you pick all the different availability zones? Is it because you want users from all those zones to be able to access our ALB? Because also when we created the 2 EC2 instances you selected 2 different availability zones which is confusing me from the network mapping part of the video?

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

      For this simple application, we don't need multiple AZs selected, but that's usually a best practice so that your application is highly available (i.e., if one AZ goes down, the other can take over). But you're right...I could have just selected one in this case. 😊

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

      @@TinyTechnicalTutorials I'm kind of confused still. What is the purpose of selecting availability zones in the network mapping part of the video?

  • @eakokel
    @eakokel Рік тому +2

    Are your ec2s in public subnets? Mine are in private subnets and therefore the 'public ip' or the 'alb dns' dont load anything in browser...how do i achieve this?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Рік тому +1

      Yes, my instances are in public subnets. If yours are in private subnets, they won't be able to get out to the internet (and other things won't be able to get IN). You could do something like route traffic from the private subnet to a NAT Gateway in a public subnet (this is commonly used so instances can get OUT to the internet to do software updates). But is there a reason you've got them in private subnets? If not, then the easiest approach would be to create new instances in a public subnet...then everything should magically work. 🤓

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

      @@TinyTechnicalTutorialsthanks for your quick reply, it is a company software application and I think they require it in the private subnet, however I may be wrong about that, is there any risks to having an ec2 in public subnet that is hosting software like Weblogic? Will look to see if there is a NAT attached.

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

    Awesome and Amazing demo! It's always great to see theory in action! Thanks for all that you do for us! You always make things crystal clear for me!! And as always, be well, be safe and Cheers!!

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

    these are brilliant! you have another sub :)

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

      Awwwww...thanks so much! This made my day (though a bit late in the response!)!! 🥰🙏🔥

  • @lesnoopy7160
    @lesnoopy7160 2 роки тому +3

    Please how do I get the User Data script?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 роки тому +3

      Hi Le! Here you go...
      #!/bin/bash
      # User data for new EC2 instances
      # install httpd (Linux 2 version)
      yum update -y
      yum install -y httpd
      systemctl start httpd
      systemctl enable httpd
      echo "Hello World! This is $(hostname -f)" > /var/www/html/index.html

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

    What if the app in the server store files and images that uploaded from the app in the same app folder, like uploads. Is that going to work as normal

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

    Thank you so much! Thats so helpful!

  • @zejiaann
    @zejiaann Рік тому +1

    Hey, can I check if i can create a load balancer that takes in HTTPS requests instead?

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

      Hi zj! 😊 Yes, you can definitely create a load balancer that works with HTTPS. Here's some documentation to get you started: docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html

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

    Thankyou so much for explaining ererythimg in short time

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

      You bet! Short and sweet. 🥰🙏🌟

    • @samimirza537
      @samimirza537 Рік тому +1

      @@TinyTechnicalTutorials can you also make videos on azure

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

      I'll probably add some Azure at some point...stay tuned! ☁

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

      @@TinyTechnicalTutorials thankyou so much mam as azure 104 is a bit difficult and you explain very well
      That's why I"m anxiously waiting for you lectures

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

    nice..... well explained, thank you : )

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

      You bet! Thanks for watching, and for such a nice comment! 🙏🤓🌟

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

    6:54 you select the newly created sg, but there's also an existing "default sg-088a..." already selected, why is that

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  4 місяці тому +1

      Ahhh, good catch! That default one gets selected automatically. I should have removed it and only used the newly-created sg. Note to self for when I refresh the video! Thanks for pointing it out. 🙏🤓🌟

  • @tuhairweronnie7385
    @tuhairweronnie7385 Рік тому +1

    Tiny do we have a different console?am trying to follow along but am not even seeing where you are getting that window lol

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

      Hey Tuhairwe! :) I think you must be talking about the part where we create two new EC2 instances? Yeah, they did a pretty major overhaul on that UI. There used to be a way to go back to the older version, but I think that option went away. So sorry...keeping up with UI changes is a never-ending battle! :(
      All the same configuration options are available on the new UI, but they're just in slightly different places. For updating the security groups, scroll down to "Network settings." In that same area ("Network settings"), you can also update the subnets/availability zones by clicking on the "Edit" button. And then to paste in the "user data"/startup script, you'll need to scroll down to "Advanced details," expand that, then scroll down to the user data section. After you have the two instances created, the rest of the UI (to create the load balancer, etc.) should be the same as what's in the video.
      Hope that helps get you started!

  • @mussa3176
    @mussa3176 2 роки тому

    Well explained, thanks a lot

  • @vipinm655
    @vipinm655 2 роки тому +1

    thanks mam,expecting more videos

  • @fisherzhu7236
    @fisherzhu7236 2 роки тому

    This is really good. Thanks!

  • @puneetsaneja3007
    @puneetsaneja3007 2 роки тому +1

    Hi. Is ALB also consider as API gateway where we define certain rules and based in that rules , request will redirect to different target group.

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 роки тому

      Hi Puneet - Good question! Yes, you can define different listener rules and then direct traffic to different target groups based on those. Here's some more detail: docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html#application-load-balancer-components

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 роки тому +1

      Hi Puneet! Not sure if you still need this, but just published a video showing how to route to different target groups: ua-cam.com/video/0XMsnAgHXoo/v-deo.html. Enjoy! :)

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

    This is great! Thank you so much!

  • @gdevelek
    @gdevelek 2 роки тому +1

    Please create a video where the ALB serves multiple TGs.

  • @anthonygonsalvis121
    @anthonygonsalvis121 Рік тому +1

    Thank you for the step-by-step explanation. However, when I tried mimicking your steps using an Windows 2022 Base EC2 (instead of a Linux EC2), I could not replicate your output. Will the script you show in the demo also run on a Window's EC2 or are there any other changes needed as well? Also, some the options (not just the cosmetic look and feel) in launching EC2 instances have changed since you published this video... (e.g. selecting an availability zone). Also adding tags or naming security groups was not possible at creation - perhaps not be a big deal since you can do so afterwards. It's a bit frustrating to not be able to debug and make it work. Any advice?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Рік тому +3

      Hi Tony! Thanks for watching! 😊
      You're right...that script is only applicable to Linux instances. For Windows instances, you'll need to set up IIS instead and then create web pages. I found a walk-through here that might help: k21academy.com/amazon-web-services/aws-solutions-architect/create-configure-a-load-balancer-on-ec2-server/.
      Unfortunately, the UI screenshots are slightly dated as well (a never-ending challenge! 😊), but hopefully it'll get you started as far as how to set up the instances, IIS and the web pages. For the security groups, the important part is to have rules for RDP (port 3389) and HTTP (port 80).
      Then for the load balancing part, the UI in my video is more up-to-date than what's shown in the walk-through, so that part is hopefully a bit more straightforward. Hope that helps!

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

      @@TinyTechnicalTutorials MANY THANKS for the prompt reply! Just a short while before seeing your response, I retried the steps with Amazon Linux EC2 instances, and was delighted to see them working as described in your videos! Happy camper again! Also realized, of course, that the script was specific to Linux EC2 instances. 😃 Best wishes and please continue posting these great videos!

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Рік тому +1

      Awesome! Glad you were able to figure it out. Cheers! 😊

  • @mayankvg9273
    @mayankvg9273 Рік тому +1

    Why do we need to add another security group with inbound port 80 when we already have an existing security group that allows traffic on all ports?

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

      I have also observed that it does not work without adding the a new group with inbound port 80.

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  Рік тому +1

      Hi Mayank! Good eye. 😊 You could actually use the security group you created earlier...the one I created was duplicative.

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

      @@TinyTechnicalTutorials I tried using the exisiting group without the new group with port 80, and it didn't work. But as I added port 80 later on it worked. Any thoughts as to why this is happening?

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

      Any ideas as to why it does not work?

  • @duppy9012
    @duppy9012 7 місяців тому +1

    I cannot seem to connect to either of my EC2s Both say "site cant be reached *insert ip* Refused to connect"

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

      Hmmm...I haven't seen that error before. 🤔 Maybe this will help? stackoverflow.com/questions/36732875/cant-connect-to-public-ip-for-ec2-instance

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

    very good work you are doing, delivering us great value. thanks a lot. what I can do for you?

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

      Much appreciated! I'm so glad the videos are helpful. 🙏🌟😊 Really the only thing you can do on your side is watch the ads? 😁

  • @vetonshala4541
    @vetonshala4541 2 роки тому

    Nice and clear, thank you :)

  • @ramirez368
    @ramirez368 7 місяців тому +1

    For demonstration purposes I see you are using just port 80 in the LB as the listener, but in the real world if you have an application you want to put a certificate in the LB and listen on port 443 for the LB no???

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

      Yes! You got it. In the real world, you'd likely be using a certificate/TLS and port 443. 👍

  • @shouravpaul3092
    @shouravpaul3092 2 роки тому

    This video is great.

  • @praveensequeira1525
    @praveensequeira1525 Рік тому +1

    1. If we have route 53 pointing to a ELB, does the DNS resolution return a single IP address of the ELB? I think this is the case, but would like to confirm 🙂
    2. If we have route 53 pointing to a Cloudfront, does the DNS resolution return a single IP address of the closest edge location? I think this is the case, but would like to confirm 🙂
    Thank you!

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

      Hey Praveen! 👋
      1. I've searched through the FAQs (aws.amazon.com/route53/faqs/) and found this: "IP addresses associated with load balancers can change at any time due to scaling up, scaling down, or software updates. Route 53 responds to each request for an Alias record with one or more IP addresses for the load balancer."
      2. I can't find a definitive answer for how it works with Cloudfront, but I would imagine it's the same since you don't really know what the IP address is for the edge location and/or that IP address can change. If you find something more concrete, feel free to update here! 😊

    • @praveensequeira1525
      @praveensequeira1525 Рік тому +1

      ​@@TinyTechnicalTutorialsthank you. I was just bouncing ideas to clear my knowledge gaps 😊 Agree and as you suggest, the DNS wont return a single ip address especially for those setup with alias resources. Ill tatoo this in my brains.

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

      😊

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

    Hello your the best!

  • @mohammedimran6680
    @mohammedimran6680 2 роки тому +1

    can i show this as POC in my company?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 роки тому

      Sure, no problem! Thanks for checking! :)

    • @mohammedimran6680
      @mohammedimran6680 2 роки тому

      @@TinyTechnicalTutorials thank you, i am learning AWS and my company wants me to do some poc

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

    You the best!!!!

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

    As simple as usual)

  • @chungtran2059
    @chungtran2059 2 роки тому

    Thanks your knowleage

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

    Thanks!

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

    روعة شكراا جزيلا لك

  • @simranbanwait
    @simranbanwait 2 роки тому +1

    font size ants

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 роки тому

      Thanks for the feedback, Simran! :) I'll remember to increase the font size more in future videos.

  • @Carsino-dev
    @Carsino-dev 7 місяців тому

    Thank you so much!