AWS EC2 Auto Scaling : Step By Step Tutorial ( Part - 10)

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

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
▬▬▬▬▬▬ 🚀 How to setup the auto scaling for the EC2 ▬▬▬▬▬▬
In this comprehensive tutorial, we'll walk you through the process of setting up auto-scaling for your EC2 instances in AWS. From setting up a VPC and subnet to creating a target group and application load balancer, we've got you covered. Follow along and learn how to ensure your applications remain available and offer consistent performance, even under heavy load.
Timestamps:
0:00 - Overview of EC2 Auto Scaling
1:35 - Traditional Scaling vs EC2 Auto scaling
4:22 - Setting up VPC (Virtual Private Cloud)
5:01 - Configuring Internet Gateway
5:56 - Configuring Subnet
9:52 - Creating a Target Group
12:14 - Setting up an Application Load Balancer
16:19 - Designing and Creating a Launch Template
22:27 - Configure Auto Scaling Group
26:18 - Testing our setup
31:15 - Conclusion and Final Thoughts
Resources and Links:
Official AWS documentation on EC2 Auto Scaling - docs.aws.amazon.com/autoscali...
More on Application Load Balancers - aws.amazon.com/elasticloadbal...
Deep Dive into VPC - aws.amazon.com/vpc/
Like and Subscribe! If you found this tutorial helpful, please give it a thumbs up and subscribe for more AWS-related content.

Пікірлер: 76
@RahulWagh
@RahulWagh 2 ай бұрын
#!/bin/bash yes | sudo apt update yes | sudo apt install apache2 echo "Server DetailsHostname: $(hostname)IP Address: $(hostname -I | cut -d" " -f1)" > /var/www/html/index.html sudo systemctl restart apache2
@ShamsuddeenAbdulkadir
@ShamsuddeenAbdulkadir Ай бұрын
I must say, this is one of the best ASG's set up tutorial out here.
@kokopopart5173
@kokopopart5173 Күн бұрын
Very well explained Rahul. The graphical representation really helps put things into perspective.
@rajendrawarrier7274
@rajendrawarrier7274 3 ай бұрын
Crisp and clear explanation in layman's term
@johncaipa
@johncaipa 3 ай бұрын
Hi thanks for the video, I wonder if the instances share the same volume or each one is independent, I also wonder what the estimated monthly price is for this setup
@SaqibMehmood-ov1ns
@SaqibMehmood-ov1ns 3 ай бұрын
like always the best explanation. your tutorials are really helpful
@RahulWagh
@RahulWagh 3 ай бұрын
Glad you like them!
@denzilpeiris492
@denzilpeiris492 3 ай бұрын
How may you plan the IP Addressing for a VPC and the related Sub-Nets?
@kondaiahp4865
@kondaiahp4865 29 күн бұрын
Thankyou very much sir with Simple explanation each and Every point
@RahulWagh
@RahulWagh 28 күн бұрын
You are most welcome
@manuelprickenpedreira
@manuelprickenpedreira 3 ай бұрын
Very good job!
@milon27
@milon27 5 ай бұрын
🎉 would you create a video on deploy a small to medium scale node js api on aws for small startup with minimum cost like 25-30 usd per month. which could increase in future. also maybe not use load balancer to reduce cost. and use docker container. and auto scaling etc
@DeshDeepak-wb3bu
@DeshDeepak-wb3bu 4 ай бұрын
excellent explanation!
@RahulWagh
@RahulWagh 3 ай бұрын
Glad it was helpful!
@osada96
@osada96 2 ай бұрын
Very detailed video, thanks!
@RahulWagh
@RahulWagh 2 ай бұрын
You're welcome!
@SarvadnyaRJawle
@SarvadnyaRJawle 2 ай бұрын
Where do we requested that what type of instances we want on demand or Spot instance.
@user-gv4eo3fw6n
@user-gv4eo3fw6n 2 ай бұрын
Thank you so much sir🙂
@RahulWagh
@RahulWagh 2 ай бұрын
Most welcome
@trendlines7098
@trendlines7098 2 ай бұрын
@rahul thank you for sharing knowledge, I tried this same to same setup but my instances are not getting public IPs and hence none of the instances gets healthy in Target Group. please advice If I am missing anything.
@RahulWagh
@RahulWagh 2 ай бұрын
Public IPs has nothing to do with the health of ec2 please check the instance user data script if that has been running properly or not
@sivabenguluru1241
@sivabenguluru1241 7 ай бұрын
Auto scaling support which type of scaling policy it's vertical or horizontal scaling?
@RahulWagh
@RahulWagh 7 ай бұрын
It is an horizontal scaling because we are increasing and decreasing the number of instances
@aniketsalve768
@aniketsalve768 Ай бұрын
If possible can you please explain instance refresh for ASG.
@yaseenbaba3389
@yaseenbaba3389 4 ай бұрын
Excellent 🎉
@RahulWagh
@RahulWagh 4 ай бұрын
Thank you! Cheers!
@enjoylife8199
@enjoylife8199 13 күн бұрын
Have to put existing EC2 instances one in backend and frontend in auto scaling group is it possible ? Do i have to create new instance and do all installation part
@RahulWagh
@RahulWagh 12 күн бұрын
Yes it is possible to do that
@praveenkumar-lr4lb
@praveenkumar-lr4lb 4 ай бұрын
very nice sir..👌👌
@RahulWagh
@RahulWagh 4 ай бұрын
Keep watching
@user-mb7vr6us9g
@user-mb7vr6us9g 2 ай бұрын
nice explanation
@RahulWagh
@RahulWagh 2 ай бұрын
Keep watching
@shubhamshukla4131
@shubhamshukla4131 14 сағат бұрын
why it show 502 bad gateway when i hit load balancer DNS
@Selvakumar-jp8he
@Selvakumar-jp8he 5 ай бұрын
Hi Rahul, Can I know the information about membership, If I join the membership of any (beginner/intermediate), Have you uploaded concept videos there and Do I see that videos? Thanking you.
@RahulWagh
@RahulWagh 5 ай бұрын
Not yet there are sessions which includes terraform and aws but in future i am planning to upload more topics
@Selvakumar-jp8he
@Selvakumar-jp8he 5 ай бұрын
Thanks for information@@RahulWagh
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 2 ай бұрын
Hi thank you for the awesome explanation. Is it possible to create autoscaling group instances in private subnet?
@RahulWagh
@RahulWagh 2 ай бұрын
Yes it is possible in the private subnet as well
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 2 ай бұрын
@@RahulWagh ohh ok... so in that case do I need to have NAT gateway for that or I can connect private subnet via load balancer?
@RahulWagh
@RahulWagh 2 ай бұрын
@@khopithansathiyakeerthy4598 you first need a target group and then loadbalancer after that you should be able to connect
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 2 ай бұрын
@@RahulWagh Thank you
@khopithansathiyakeerthy4598
@khopithansathiyakeerthy4598 2 ай бұрын
@@RahulWagh Hi, I created two private subnets(AZ1a, AZ1b) and associated them with a new private route table. There is no IGW or NAT GW connected with that. Then I created a Target group. Then I configured a Load balancer with public subnets in two different Availability zones(AZ1a, AZ1b). After that, I created Auto Scaling group with two private subnets. But the the health check is failed and instances are being destroyed and recreated again and again. So, what would be the reason for this
@AmrutaWagh-kb3yv
@AmrutaWagh-kb3yv 7 ай бұрын
I want to know if suddnly high traffic come how to resolve this issues?
@RahulWagh
@RahulWagh 7 ай бұрын
You have a max count always with you which you can set to high but use scaling based on memory usage as well as cpu to have more control
@santhoshk2590
@santhoshk2590 4 ай бұрын
Good
@moulalucky8608
@moulalucky8608 9 күн бұрын
What case we use load balancer and Autoscaling?
@RahulWagh
@RahulWagh 7 күн бұрын
Load balancer will not scale up or scale down instances but instead it will just distribute the traffic equally but autoscalling will increase and decrease the instances
@kmadanofficial
@kmadanofficial Ай бұрын
How did you make that architecture diagram please explain
@RahulWagh
@RahulWagh Ай бұрын
I keep the things simple and use power point for architectural diagrams
@bhardwaj_abhi3421
@bhardwaj_abhi3421 2 ай бұрын
what was the use of min and max . When will no of instances reach maximum or minimum
@ToldosRanchoDeVilla
@ToldosRanchoDeVilla 2 ай бұрын
I had the same question so I investigated, AWS will try to keep the number of instances near of the desired number, if the metric is reached then the number of EC2 instances increases and the same happens if the demand is very low, the number of instances will decrease but always above the min number
@sakshisirsat7493
@sakshisirsat7493 3 ай бұрын
Hello sir , Ur videos r amazing. But try to show how to delete this all .
@mararbinu
@mararbinu 4 ай бұрын
Nice session. Please let me know how to get the Channel membership
@RahulWagh
@RahulWagh 4 ай бұрын
Check the description section or you can click on this link - kzbin.info/door/7p4oXcPbgk_yTSHK7QlkSgjoin
@Diffplay
@Diffplay Ай бұрын
Hii I am getting 502 Bad gatewayError whats might be the reason
@RahulWagh
@RahulWagh Ай бұрын
There could multiple issues for example security group, target group mapping ec2 instance subnet. Check everything one by one
@manojgandham-lu7tu
@manojgandham-lu7tu 7 ай бұрын
Can you please start terraform to provision these all activities....
@RahulWagh
@RahulWagh 7 ай бұрын
Hi Manoj i have stated terraform series to provision all the things which i have shown in this tutorial but it only for the youtube members. If you are interested then you can join my membership program. Here is the playlist for that - kzbin.info/aero/UUMO7p4oXcPbgk_yTSHK7QlkSg You can join also with - kzbin.info/door/7p4oXcPbgk_yTSHK7QlkSgjoin
@user-vi1rq9tl6v
@user-vi1rq9tl6v 2 ай бұрын
my health status was unhealthy any reason ?
@SaqibMehmood-ov1ns
@SaqibMehmood-ov1ns 3 ай бұрын
Please create a tutorial for "deployment of a dockerized app via CICD, AWS Code deploy and ECR"
@RahulWagh
@RahulWagh 3 ай бұрын
Surely I will add to my list
@KuldeepPawar0908
@KuldeepPawar0908 2 ай бұрын
can anybody copy paste the user data script which is used by him?
@RahulWagh
@RahulWagh 2 ай бұрын
#!/bin/bash yes | sudo apt update yes | sudo apt install apache2 echo "Server DetailsHostname: $(hostname)IP Address: $(hostname -I | cut -d" " -f1)" > /var/www/html/index.html sudo systemctl restart apache2
@vinod-qg5eb
@vinod-qg5eb Ай бұрын
your expiation is very good, but when you uploaded a videos in series, why are you showing the repeated process(vpc, ec2, routes, lb) every time?. If we you can save that time you can upload small videos and cover all the buttons. Sorry it's just my feedback.
@RahulWagh
@RahulWagh Ай бұрын
I appreciate you feedback and it is valid. But I have thousands of viewers who are only interested in one topic and if i skip the networking part in any of my video then they will not understand why i am working private or public subnet or why i created the VPC in the first place. So that is the reason i try to always prepare the setup from the scratch although it might be repeated for you but to improve that experience i have provided the time stamp in the description so that you can skip the networking part which you feel repeated
@sivav7464
@sivav7464 2 ай бұрын
google owner teaching on aws
@RahulWagh
@RahulWagh 2 ай бұрын
Hahaha no I am Rahul
@busuyijohnson9602
@busuyijohnson9602 3 ай бұрын
Great job!
@RahulWagh
@RahulWagh 3 ай бұрын
Thanks for the visit
SHE WANTED CHIPS, BUT SHE GOT CARROTS 🤣🥕
00:19
OKUNJATA
Рет қаралды 8 МЛН
Trágico final :(
01:00
Juan De Dios Pantoja
Рет қаралды 24 МЛН
AWS Auto Scaling Deep Dive
10:37
Digital Cloud Training
Рет қаралды 16 М.
AWS in Telugu : What is Auto Scaling Group/ASG Part-1
28:09
Avinash Reddy Thipparthi
Рет қаралды 3,3 М.
AWS Assume IAM Role - Step by Step tutorial (Part-3)
17:24
Rahul Wagh
Рет қаралды 19 М.
Auto Scaling and Load Balancing on AWS
22:53
Digital Cloud Training
Рет қаралды 1,6 М.
EC2 Auto Scaling & Elastic Load Balancer | AWS in Action
21:50
Intro to AWS - The Most Important Services To Learn
50:07
Be A Better Dev
Рет қаралды 369 М.
NEW GPT-4o: My Mind is Blown.
6:28
Joshua Chang
Рет қаралды 455 М.
What’s your charging level??
0:14
Татьяна Дука
Рет қаралды 227 М.
Добавления ключа в домофон ДомРу
0:18