AWS ALB (Application Load Balancer) - Step By Step Tutorial (Part -9)

  Рет қаралды 20,544

Rahul Wagh

Rahul Wagh

Күн бұрын

▬▬▬▬▬▬ 🚀 Join membership for premium content ▬▬▬▬▬▬
KZbin Membership - / @rahulwagh
▬▬▬▬▬▬ 🚀 Courses ▬▬▬▬▬▬
1. Terraform - • HashiCorp Terraform As...
2. Ansible - • Ansible for Beginners:...
3. Prometheus & Grafana - • Getting started with P...
4. Helm Chart - • Complete Helm Chart Tu...
5. Hashi Corp vault - • HashiCorp Vault Instal...
EC2 Launch Template Tutorial: Step-by-Step Guide | How to Create & Use Existing Templates
Welcome to this tutorial on setting up an Application Load Balancer (ALB) using two EC2 instances within a VPC's public subnet on AWS. By the end of this lab session, you'll be familiar with the entire process, ensuring a balanced load on your instances, leading to improved performance and redundancy.
▬▬▬▬▬▬ 🚀 Timestamps: ▬▬▬▬▬▬
0:00 - Introduction
Brief overview of what ALBs are and their importance in scaling and high availability.
00:41 - VPC Creation and Configuration
Steps to create a new VPC.
Configuring the CIDR block.
01:34 - Create Internet Gateway and attach to VPC
02:42 - Setting up a public subnet.
04:57 - Create Route Table and associate with subnet
07:17 - Launching EC2 Instances
Selecting an appropriate Amazon Machine Image (AMI).
Assigning them to the public subnet within our VPC.
Security group configuration for the instances.
14:40 - Target Group Configuration
Registering our two EC2 instances.
Health check settings for optimal performance.
18:05 - Setting up the Application Load Balancer (ALB)
Navigating to the EC2 dashboard and choosing “Load Balancers”.
Creating a new ALB and defining its properties.
21:13 - Configuring Listener Rules & Linking the ALB with the Target Group
Ensuring traffic is directed correctly.
Setting up default actions and priorities.
23:03 - Testing the Load Balancer
Accessing the public URL of the ALB.
Demonstrating load distribution between the two instances.
19:00 - Best Practices and Tips
Security considerations.
Cost management and optimization.
24:24 - Conclusion and Recap
Summary of what we've covered.
Next steps and further learning resources.

Пікірлер: 81
@gauravchoudhary3733
@gauravchoudhary3733 5 ай бұрын
I don't know why this channel has only 22+ K subscribers. This channel is one of the best in its class and Very crystal and clear explanation of each and every concepts, even for a single abbreviation as well. Rahul is a true AWS Community Builder. Kudos Rahul for all your efforts and covering/explaining some of the most useful and critical services of AWS.
@RahulWagh
@RahulWagh 5 ай бұрын
Thanks for your kind words 😊
@Theparagable
@Theparagable 3 ай бұрын
That’s true.. thank you very much Rahul.. Simplicity and clarity of your videos is of great value.
@sany2k8
@sany2k8 3 ай бұрын
Exactly the same thoughts, But I think the best stuff will eventually get it's recognitions, keep up your good work
@RahulWagh
@RahulWagh 3 ай бұрын
So glad to have your support ❤️
@dayanandthorat4213
@dayanandthorat4213 4 ай бұрын
This content cleared my concept of ALB !!!! thank you so much for taking efforts making such content 🤩
@shaiksaif4982
@shaiksaif4982 23 күн бұрын
Thank you so much for detailed explaination and Steps for launching Application load balancers for EC2 with VPC and internet gateway this video helped me alot while doing my project.
@RahulWagh
@RahulWagh 22 күн бұрын
You are most welcome
@thapasujan07
@thapasujan07 4 күн бұрын
Beautifully executed Sir. ❤
@RahulWagh
@RahulWagh 3 күн бұрын
Keep watching
@Shrikanth134
@Shrikanth134 4 ай бұрын
Thanks for the video. I am still starting with AWS, i had this question - it seemed like ALB implicitly took care of routing traffic from users to the target groups. Was there a need to explicitly define route tables and attach it to igw ? Wouldn't the setup have worked even without the route table ?
@SaqibMehmood-ov1ns
@SaqibMehmood-ov1ns 4 ай бұрын
Your tutorials are awesome, detailed, and easy to follow. Please keep creating.
@RahulWagh
@RahulWagh 4 ай бұрын
Glad you like them!
@bhardwaj_abhi3421
@bhardwaj_abhi3421 3 ай бұрын
Nice Explanation . You have mentioned terraform, helm chart etc at the end of video .. can you tell me where they are used in software development and what is advantage of learning them
@nirmesh44
@nirmesh44 7 ай бұрын
Best. explanation ever. great work.
@RahulWagh
@RahulWagh 7 ай бұрын
Glad you think so! Follow more me on youtube membership for more premium content - kzbin.info/door/7p4oXcPbgk_yTSHK7QlkSgjoin
@sameendrakasturi4473
@sameendrakasturi4473 7 ай бұрын
Great work Rahul ji
@RahulWagh
@RahulWagh 7 ай бұрын
Cheers
@deevelarajesh7872
@deevelarajesh7872 3 ай бұрын
Really liked it. Everyone can easily understand the concept. Especially for beginners this tutorial is very useful👌👏
@RahulWagh
@RahulWagh 3 ай бұрын
Glad to hear that
@songbaiyin7830
@songbaiyin7830 4 ай бұрын
Thanks for your sharing, it's concise and to the point. One thing about this one, per my understanding, the default security group associated with ALB could be removed becoz we have created our own one.
@trishul_bawankar
@trishul_bawankar Ай бұрын
Every chapter has been made so easy to understand! :)
@RahulWagh
@RahulWagh Ай бұрын
Thanks for stopping by on my channel and stay tuned there are more to come
@spartenmadhan141
@spartenmadhan141 4 ай бұрын
Hi Rahul, I have a doubt for one web application we are bundling the instance in target group and bind it to ALB. Then using ALB DNS link to access them. Lets say i have another similar instance in that case i have to create another ALB and do same steps?
@surajpatil2078
@surajpatil2078 2 ай бұрын
Really impressed with details ❤
@RahulWagh
@RahulWagh 2 ай бұрын
cheers to that
@NANINANI-ix6uf
@NANINANI-ix6uf 3 ай бұрын
Great explanation, Thanks..😍
@RahulWagh
@RahulWagh 3 ай бұрын
You are welcome!
@cloudwithjd4068
@cloudwithjd4068 4 ай бұрын
You’re amazing . Still wondering why I didn’t saw videos so far . Keep doing rahul. Can you share me the start script in comments.
@cloudwithjd4068
@cloudwithjd4068 4 ай бұрын
Hello Rahul I really impressed with your video and explanation. When I’m create on my EC2 instance . I’m able to install the Apache but I’m not able to print the EC2 instance hostname. When you have some free time can you share it with me the user data script which you used while creating the EC2 instance . Thank you Jagadeesh
@AmarinderSandhu-sr3ij
@AmarinderSandhu-sr3ij Ай бұрын
Thank you for the awesome explanation. I really appreciate your work.
@RahulWagh
@RahulWagh Ай бұрын
Glad it was helpful!
@godmoneyhateandlove9315
@godmoneyhateandlove9315 3 ай бұрын
Wonderful guy
@olebogengmokolopo5130
@olebogengmokolopo5130 5 ай бұрын
Thank you , this was very helpful
@RahulWagh
@RahulWagh 5 ай бұрын
Glad it was helpful!
@Shail786
@Shail786 5 ай бұрын
Hi Rahul, I am doing an AWS WAR activity for my company AWS account through AWS Partner. For security purpose Partner created Private VPC for server migration so that we can securely access the server through vpn only. After migrated the server from public to private, have created application load balancer in private vpc with single server only instead of 2 servers. Everything is properly created as required but my website is frequently giving 504 gateway timeout and sometimes 502 Bad Gateway error. So, can you please help me, what is wrong in my setup and why getting these errors?
@user-js4yx6sz5c
@user-js4yx6sz5c 4 ай бұрын
Superb Sir.
@RahulWagh
@RahulWagh 4 ай бұрын
Keep watching
@dnyaneshwarmuley
@dnyaneshwarmuley 7 ай бұрын
Thank you Rahul, it would be great if you could also share the purpose behind creating vpc, internet gateway , subnet etc
@RahulWagh
@RahulWagh 7 ай бұрын
The reason is it’s not advisable to work in the default vpc, default subnet, you must always work within your own vpc otherwise it becomes messy and hard to manage resources
@manjunathams8865
@manjunathams8865 2 ай бұрын
Mind blowing!
@RahulWagh
@RahulWagh 2 ай бұрын
Cheers to that
@ShreyaSingh-so6jg
@ShreyaSingh-so6jg 3 ай бұрын
Hi Rahul, Why are we using default security group here along with the security group which we made for http request. I automated this project using terraform and everything worked well except the part where i had to include default security group in my target group. Without that my instances were in unhealthy state. Post applying the default sg, it worked smoothly. Please explain. Thanks, Shreya
@RahulWagh
@RahulWagh 3 ай бұрын
The default security group in AWS is automatically created in each Amazon Virtual Private Cloud (VPC). Its purpose is to provide a baseline level of security by allowing all outbound traffic and denying all inbound traffic initially. It serves as a starting point, and users can modify its rules to meet specific requirements. The default security group ensures instances can communicate with each other within the same security group while restricting unauthorized access from external sources.
@durgeshverma6936
@durgeshverma6936 3 ай бұрын
Great sir
@RahulWagh
@RahulWagh 3 ай бұрын
You are welcome
@praveenagrahari4207
@praveenagrahari4207 5 ай бұрын
Thank you so so much ....
@RahulWagh
@RahulWagh 5 ай бұрын
You're most welcome
@yaseenbaba3389
@yaseenbaba3389 4 ай бұрын
Excellent! Can we achieve the same using Terraform
@RahulWagh
@RahulWagh 4 ай бұрын
Yes you can. Here is link of my another session where i have show how to do that - kzbin.info/www/bejne/paW0opdtfLeJgZI
@user-lb1ed5jw4u
@user-lb1ed5jw4u 5 ай бұрын
lets say i'm hosting a website on aws and i used load balancer on my backend ec2 instance, as I have only 1 instance then how will the load-balancer handle it, it should run more instance of my backend server, but in your video it isn't happening
@RahulWagh
@RahulWagh 5 ай бұрын
you need to create target group and then you can add either 1 ec2 or more than 1 ec2 instance. After that you can point load balancer to target group. There is no direct connection between loadbalancer and target group.
@anilrout9388
@anilrout9388 Ай бұрын
Hi Rahul Please add some other aws services that will be very helpful .
@RahulWagh
@RahulWagh Ай бұрын
Surely i will make a note of it
@thierrymemel
@thierrymemel 3 ай бұрын
Brother Rahul , I would like to join the membership but I don't know... I don't see the button " Join " on both my laptop and my mobile phones, or any direct link to join? Please I need your help.
@RahulWagh
@RahulWagh 3 ай бұрын
Here is the link to join it - kzbin.info/door/7p4oXcPbgk_yTSHK7QlkSgjoin
@theophilus4723
@theophilus4723 12 күн бұрын
Thanks
@RahulWagh
@RahulWagh 12 күн бұрын
You made my day
@sruthi2016
@sruthi2016 7 ай бұрын
Can you please share the same concepts using Terraform Example: how to serve an ec2 instance in a load balancer aws using terraform
@RahulWagh
@RahulWagh 7 ай бұрын
It is progress but those session will be exclusive for youtube members of this channel. If you are interested then you can also join it - kzbin.info/door/7p4oXcPbgk_yTSHK7QlkSgjoin Hopefully in future i will make it available on youtube for everyone
@bharathraj8467
@bharathraj8467 Ай бұрын
I have one question, will we get the result if we use the linux instance in ec2.
@RahulWagh
@RahulWagh Ай бұрын
I didn’t get your question
@shubhamnikam1238
@shubhamnikam1238 Ай бұрын
Suppose I have a cluster with 2 instances on one I am running MySQL image and on one I am running spring boot API I have linked API with db. So while creating a target group do I need to add both db and API in one target group
@RahulWagh
@RahulWagh Ай бұрын
No you do not need to add MySQL db into the target group
@shubhamnikam1238
@shubhamnikam1238 Ай бұрын
@@RahulWagh I did create TG and added only API instance to the tg and then created load balancer. but tg is unhealthy with 401
@RahulWagh
@RahulWagh Ай бұрын
@shubhamnikam1238 check the health endpoint of TG and ec2 health
@shubhamnikam1238
@shubhamnikam1238 Ай бұрын
Here i already start the cluster and both db and API instance are running and afterwords I created TG and LB
@ChandanKumar-xd1tg
@ChandanKumar-xd1tg 4 ай бұрын
please make a video microservice two target group create
@smmrok
@smmrok 2 ай бұрын
I think VPC and more are better options which create subnet/RT/IG for you automatically
@RahulWagh
@RahulWagh 2 ай бұрын
I couldn’t get your comment are you suggesting the default vpc creation where you get IG/subnet etc created for you instead of creating it manually?
@smmrok
@smmrok 2 ай бұрын
@@RahulWagh - No ----- You created manually one VPC and Subnet/RT/IGW - you did all those after VPC creation- Instead if you select the (VPC and More) option when creating your own VPC then you can avoid all those manual steps- AWS will create all those secondary legs(subnet/RT/IGW..) attached to VPC for you in one shot -
@amolnarlawar4583
@amolnarlawar4583 2 ай бұрын
❤ 0:18
@RahulWagh
@RahulWagh 2 ай бұрын
Thanks but didn’t understood your comment?
@hashilbh5654
@hashilbh5654 7 ай бұрын
🎉
@RahulWagh
@RahulWagh 7 ай бұрын
Cheers
@ravikishore-cg9er
@ravikishore-cg9er 18 күн бұрын
17:23 you just said private subnet bro i think its public-subnet
@bikdigdaddy
@bikdigdaddy 7 күн бұрын
thank you so much. amazing lecture. loved it.
@RahulWagh
@RahulWagh 7 күн бұрын
You are welcome
@surajmane9090
@surajmane9090 2 ай бұрын
Application load balance is only for Public Subnet ? and why is not foe private subnet
@RahulWagh
@RahulWagh 2 ай бұрын
Although in my session I showed it from the public subnet but you can configure it from the private subnet as well
AWS EC2 Auto Scaling : Step By Step Tutorial ( Part - 10)
30:50
Rahul Wagh
Рет қаралды 22 М.
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 30 МЛН
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 18 МЛН
Bro be careful where you drop the ball  #learnfromkhaby  #comedy
00:19
Khaby. Lame
Рет қаралды 45 МЛН
PEOPLE AI
1:23
Defiking4
Рет қаралды 7
What is a Load Balancer?
8:22
IBM Technology
Рет қаралды 215 М.
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,8 МЛН
wyłącznik
0:50
Panele Fotowoltaiczne
Рет қаралды 23 МЛН
Эволюция телефонов!
0:30
ТРЕНДИ ШОРТС
Рет қаралды 6 МЛН
Индуктивность и дроссель.
1:00
Hi Dev! – Электроника
Рет қаралды 1,6 МЛН
👎Главный МИНУС планшета Apple🍏
0:29
Demin's Lounge
Рет қаралды 499 М.