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

  Рет қаралды 22,349

Rahul Wagh

Rahul Wagh

Күн бұрын

▬▬▬▬▬▬ 🚀 Join membership for premium content ▬▬▬▬▬▬
KZfaq 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.

Пікірлер: 89
@timmybabs5479
@timmybabs5479 4 күн бұрын
One of the best training channels. Great job Rahul. You are a trainer with great in depth knowledge. You are a master.
@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 4 ай бұрын
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 ❤️
@Anand-pb3nz
@Anand-pb3nz Күн бұрын
i am still not able to understand why there are only around 37K subscribers. Too good Rahul. Keep going dude. Such a perfect and clear instructions.
@RahulWagh
@RahulWagh Күн бұрын
Thanks for the visit
@dayanandthorat4213
@dayanandthorat4213 4 ай бұрын
This content cleared my concept of ALB !!!! thank you so much for taking efforts making such content 🤩
@SaqibMehmood-ov1ns
@SaqibMehmood-ov1ns 5 ай бұрын
Your tutorials are awesome, detailed, and easy to follow. Please keep creating.
@RahulWagh
@RahulWagh 5 ай бұрын
Glad you like them!
@nirmesh44
@nirmesh44 8 ай бұрын
Best. explanation ever. great work.
@RahulWagh
@RahulWagh 8 ай бұрын
Glad you think so! Follow more me on youtube membership for more premium content - kzfaq.info/love/7p4oXcPbgk_yTSHK7QlkSgjoin
@deevelarajesh7872
@deevelarajesh7872 4 ай бұрын
Really liked it. Everyone can easily understand the concept. Especially for beginners this tutorial is very useful👌👏
@RahulWagh
@RahulWagh 4 ай бұрын
Glad to hear that
@shaiksaif4982
@shaiksaif4982 Ай бұрын
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 Ай бұрын
You are most welcome
@trishul_bawankar
@trishul_bawankar 2 ай бұрын
Every chapter has been made so easy to understand! :)
@RahulWagh
@RahulWagh 2 ай бұрын
Thanks for stopping by on my channel and stay tuned there are more to come
@AmarinderSandhu-sr3ij
@AmarinderSandhu-sr3ij 2 ай бұрын
Thank you for the awesome explanation. I really appreciate your work.
@RahulWagh
@RahulWagh 2 ай бұрын
Glad it was helpful!
@sameendrakasturi4473
@sameendrakasturi4473 7 ай бұрын
Great work Rahul ji
@RahulWagh
@RahulWagh 7 ай бұрын
Cheers
@NANINANI-ix6uf
@NANINANI-ix6uf 3 ай бұрын
Great explanation, Thanks..😍
@RahulWagh
@RahulWagh 3 ай бұрын
You are welcome!
@thapasujan07
@thapasujan07 19 күн бұрын
Beautifully executed Sir. ❤
@RahulWagh
@RahulWagh 19 күн бұрын
Keep watching
@surajpatil2078
@surajpatil2078 3 ай бұрын
Really impressed with details ❤
@RahulWagh
@RahulWagh 3 ай бұрын
cheers to 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.
@olebogengmokolopo5130
@olebogengmokolopo5130 6 ай бұрын
Thank you , this was very helpful
@RahulWagh
@RahulWagh 6 ай бұрын
Glad it was helpful!
@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
@godmoneyhateandlove9315
@godmoneyhateandlove9315 4 ай бұрын
Wonderful guy
@cloudwithjd4068
@cloudwithjd4068 5 ай бұрын
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.
@shiv0096
@shiv0096 5 күн бұрын
Really good channel
@manjunathams8865
@manjunathams8865 3 ай бұрын
Mind blowing!
@RahulWagh
@RahulWagh 3 ай бұрын
Cheers to that
@Shrikanth134
@Shrikanth134 5 ай бұрын
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 ?
@user-js4yx6sz5c
@user-js4yx6sz5c 4 ай бұрын
Superb Sir.
@RahulWagh
@RahulWagh 4 ай бұрын
Keep watching
@praveenagrahari4207
@praveenagrahari4207 5 ай бұрын
Thank you so so much ....
@RahulWagh
@RahulWagh 5 ай бұрын
You're most welcome
@dnyaneshwarmuley
@dnyaneshwarmuley 8 ай бұрын
Thank you Rahul, it would be great if you could also share the purpose behind creating vpc, internet gateway , subnet etc
@RahulWagh
@RahulWagh 8 ай бұрын
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
@durgeshverma6936
@durgeshverma6936 4 ай бұрын
Great sir
@RahulWagh
@RahulWagh 4 ай бұрын
You are welcome
@cloudwithjd4068
@cloudwithjd4068 5 ай бұрын
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
@theophilus4723
@theophilus4723 28 күн бұрын
Thanks
@RahulWagh
@RahulWagh 28 күн бұрын
You made my day
@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?
@ashishpandey8766
@ashishpandey8766 5 сағат бұрын
Thanks Rahul
@RahulWagh
@RahulWagh 2 сағат бұрын
You are welcome
@yaseenbaba3389
@yaseenbaba3389 5 ай бұрын
Excellent! Can we achieve the same using Terraform
@RahulWagh
@RahulWagh 5 ай бұрын
Yes you can. Here is link of my another session where i have show how to do that - kzfaq.info/get/bejne/pdqBpMdorLi6e2Q.html
@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?
@bikdigdaddy
@bikdigdaddy 23 күн бұрын
thank you so much. amazing lecture. loved it.
@RahulWagh
@RahulWagh 23 күн бұрын
You are welcome
@hashilbh5654
@hashilbh5654 8 ай бұрын
🎉
@RahulWagh
@RahulWagh 8 ай бұрын
Cheers
@ChandanKumar-xd1tg
@ChandanKumar-xd1tg 4 ай бұрын
please make a video microservice two target group create
@anilrout9388
@anilrout9388 2 ай бұрын
Hi Rahul Please add some other aws services that will be very helpful .
@RahulWagh
@RahulWagh 2 ай бұрын
Surely i will make a note of it
@shiv0096
@shiv0096 5 күн бұрын
In alb some issues, instance can't reach the site , through public address
@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 - kzfaq.info/love/7p4oXcPbgk_yTSHK7QlkSgjoin Hopefully in future i will make it available on youtube for everyone
@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.
@amolnarlawar4583
@amolnarlawar4583 2 ай бұрын
❤ 0:18
@RahulWagh
@RahulWagh 2 ай бұрын
Thanks but didn’t understood your comment?
@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.
@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
@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 -
@thierrymemel
@thierrymemel 4 ай бұрын
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 4 ай бұрын
Here is the link to join it - kzfaq.info/love/7p4oXcPbgk_yTSHK7QlkSgjoin
@shubhamnikam1238
@shubhamnikam1238 2 ай бұрын
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 2 ай бұрын
No you do not need to add MySQL db into the target group
@shubhamnikam1238
@shubhamnikam1238 2 ай бұрын
@@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 2 ай бұрын
@shubhamnikam1238 check the health endpoint of TG and ec2 health
@shubhamnikam1238
@shubhamnikam1238 2 ай бұрын
Here i already start the cluster and both db and API instance are running and afterwords I created TG and LB
@rajsekhargude8158
@rajsekhargude8158 7 күн бұрын
Hi Sir, can you pls attach, share the script file...as iam getting errors. pls many Thanks🙏
@ravikishore-cg9er
@ravikishore-cg9er Ай бұрын
17:23 you just said private subnet bro i think its public-subnet
@surajmane9090
@surajmane9090 3 ай бұрын
Application load balance is only for Public Subnet ? and why is not foe private subnet
@RahulWagh
@RahulWagh 3 ай бұрын
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
Рет қаралды 24 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 14 МЛН
Balloon Stepping Challenge: Barry Policeman Vs  Herobrine and His Friends
00:28
What is a Load Balancer?
8:22
IBM Technology
Рет қаралды 219 М.
AWS Elastic Load Balancing Introduction
12:02
Stephane Maarek
Рет қаралды 126 М.
ВЫ ЧЕ СДЕЛАЛИ С iOS 18?
22:40
Overtake lab
Рет қаралды 124 М.