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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 117

  • @TinyTechnicalTutorials
    @TinyTechnicalTutorials  2 ปีที่แล้ว +5

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

    • @NarkoChamp
      @NarkoChamp 2 ปีที่แล้ว +1

      please do LAB on Site to site VPN

    • @puneetsaneja3007
      @puneetsaneja3007 2 ปีที่แล้ว +2

      ECS, codepipeline

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 ปีที่แล้ว +2

      Added it to my list. Thanks, Puneet!

    • @MiskoKatua
      @MiskoKatua ปีที่แล้ว +1

      How about AWS WAF?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  ปีที่แล้ว +1

      Ooh, I like it! I've added it to my list for future videos. Thanks for the suggestion!

  • @joeprince7509
    @joeprince7509 11 วันที่ผ่านมา

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

  • @joshuamorillo1694
    @joshuamorillo1694 2 หลายเดือนก่อน

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

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 หลายเดือนก่อน +1

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

  • @PatrickBurkeTV
    @PatrickBurkeTV ปีที่แล้ว +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.

  • @zhihenghua2105
    @zhihenghua2105 2 ปีที่แล้ว +4

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

  • @a.m.1407
    @a.m.1407 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

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

  • @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.

  • @brandonallen-santos7102
    @brandonallen-santos7102 2 ปีที่แล้ว +1

    Super simple explanation. Thanks for uploading!

  • @EduardoMarquez-c1p
    @EduardoMarquez-c1p 2 วันที่ผ่านมา

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

  • @GavinKimpson
    @GavinKimpson 3 หลายเดือนก่อน

    these are brilliant! you have another sub :)

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  หลายเดือนก่อน

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

  • @raimsatybaldiev8305
    @raimsatybaldiev8305 2 ปีที่แล้ว

    You're my favorite teacher in here!!

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  2 ปีที่แล้ว

      Awww, shucks! Thanks for such a nice comment, Raim! Made my day. :)

  • @priyankbisht6229
    @priyankbisht6229 2 หลายเดือนก่อน

    thanks for the quick demo.

  • @arieladalid9910
    @arieladalid9910 4 หลายเดือนก่อน

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

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  4 หลายเดือนก่อน

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

  • @bacanalienigena
    @bacanalienigena ปีที่แล้ว

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

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  ปีที่แล้ว

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

  • @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. 💪

  • @srisoundars
    @srisoundars 4 หลายเดือนก่อน

    You the best!!!!

  • @omuleanu
    @omuleanu 3 หลายเดือนก่อน +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  หลายเดือนก่อน +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. 🙏🤓🌟

  • @user-mw9nq3vk4k
    @user-mw9nq3vk4k ปีที่แล้ว

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

  • @universal4334
    @universal4334 3 หลายเดือนก่อน +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  หลายเดือนก่อน

      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! 🤓

  • @ramirez368
    @ramirez368 4 หลายเดือนก่อน +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  4 หลายเดือนก่อน +1

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

  • @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!

  • @samimirza537
    @samimirza537 ปีที่แล้ว

    Thankyou so much for explaining ererythimg in short time

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  ปีที่แล้ว

      You bet! Short and sweet. 🥰🙏🌟

    • @samimirza537
      @samimirza537 11 หลายเดือนก่อน +1

      @@TinyTechnicalTutorials can you also make videos on azure

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  11 หลายเดือนก่อน

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

    • @samimirza537
      @samimirza537 11 หลายเดือนก่อน

      @@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

  • @duppy9012
    @duppy9012 5 หลายเดือนก่อน +1

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

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  5 หลายเดือนก่อน

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

  • @vipinm655
    @vipinm655 2 ปีที่แล้ว +1

    thanks mam,expecting more videos

  • @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

  • @aleksey6772
    @aleksey6772 ปีที่แล้ว

    Thank you so much! Thats so helpful!

  • @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!!

  • @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?

  • @philsitumorang
    @philsitumorang ปีที่แล้ว

    This is great! Thank you so much!

  • @eakokel
    @eakokel 10 หลายเดือนก่อน +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  10 หลายเดือนก่อน +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 10 หลายเดือนก่อน

      @@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.

  • @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

  • @fisherzhu7236
    @fisherzhu7236 2 ปีที่แล้ว

    This is really good. Thanks!

  • @mussa3176
    @mussa3176 ปีที่แล้ว

    Well explained, thanks a lot

  • @VisualBeatLab
    @VisualBeatLab 11 หลายเดือนก่อน

    Hello your the best!

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  11 หลายเดือนก่อน

      No, YOU are the best! Thanks for watching!! 🤓🌟🙏

  • @vetonshala4541
    @vetonshala4541 2 ปีที่แล้ว

    Nice and clear, thank you :)

  • @gdevelek
    @gdevelek 2 ปีที่แล้ว +1

    Please create a video where the ALB serves multiple TGs.

  • @shouravpaul3092
    @shouravpaul3092 ปีที่แล้ว

    This video is great.

  • @praveensequeira1525
    @praveensequeira1525 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน

      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 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน

      😊

  • @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?

  • @nadzhibkuziev8057
    @nadzhibkuziev8057 ปีที่แล้ว

    As simple as usual)

  • @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!

  • @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: th-cam.com/video/0XMsnAgHXoo/w-d-xo.html. Enjoy! :)

  • @chungtran2059
    @chungtran2059 ปีที่แล้ว

    Thanks your knowleage

  • @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! 😊

  • @DeepAnandrao
    @DeepAnandrao ปีที่แล้ว

    Thanks!

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  ปีที่แล้ว

      Wow, D A - you're officially my first donation!!!! ❤ Thanks SO much! 🙏

  • @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? 😁

  • @digitalluxury2033
    @digitalluxury2033 ปีที่แล้ว

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

  • @mohammedimran6680
    @mohammedimran6680 ปีที่แล้ว +1

    can i show this as POC in my company?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  ปีที่แล้ว

      Sure, no problem! Thanks for checking! :)

    • @mohammedimran6680
      @mohammedimran6680 ปีที่แล้ว

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

  • @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 4 หลายเดือนก่อน

    Thank you so much!