I was using user data to create an EC2 instance, and the HTTPD server was operational through user data. However, when I was restarting the instance and then encountered a 502 gateway error, I performed a status check. After that, I found that the HTTPD server was not running. I restarted it, and it started working again through the terminal. If I have 50 servers, and I need to restart them, do I have to start each one individually from the terminal, or is there another method? I have implemented a load balancer.
Make sure that user data script has the capability to check following- 1. Check if the httpd process is running and if the process is running then do not restart the httpd again. 2. If the process is stopped then start the httpd process again This check will ensure that your httpd is always up and running no matter how many times you restart the server
If I have 50 EC2 instance Then how I start all instance at single time because EOD I need to stop all EC2 instance but on next I need start all the task for completing work Can I need to manually start one by one
Thank you very much Sir. Could you pls do a video on how to update user data content after creating an EC2 via launch template? I observed that if updated on EC2 instance itself with #cloud-boothook, it won't connect. So i'm thinking it could connect, if updated via the launch template, but I don't know how. I'd appreciate it if you can pls do a video on this. Thank you Sir.
Very Good teaching Rahul. Love the way you explain things.
You are welcome
amazing Rahul.. you helped me understand the 'user data' concept pretty simply.. god speed.
Glad it helped
Good teaching skills as always.
Hello Rahul, your teaching skills are good and explained in clear way. Please make a video on aws DevOps pipeline which is more useful for all of them
It is already there on my channel
Mastering DevOps: Deploying REST API on AWS with Terraform and Jenkins Magic
ruclips.net/video/otQqd7GRVK0/видео.html
@@RahulWagh Rahul, iam asking about AWS codecommit, AWS codepipeline, AWS Codebuild and AWS codedeploy. Make a video on this Rahul
This is really a nice and interesting session.
Thanks Rahul for sharing such content.
Glad you liked it!
Hi Sir...i am learning AWS , ur course is helping very much NO WORDS...Thanks a Lot. Can please share the commands to install nginx as well
Amazing session ❤❤.
Glad you enjoyed it!
Love 💕 u so much very good content
Amazing 👏
Thank you! Cheers!
I was using user data to create an EC2 instance, and the HTTPD server was operational through user data. However, when I was restarting the instance and then encountered a 502 gateway error, I performed a status check. After that, I found that the HTTPD server was not running. I restarted it, and it started working again through the terminal. If I have 50 servers, and I need to restart them, do I have to start each one individually from the terminal, or is there another method? I have implemented a load balancer.
Make sure that user data script has the capability to check following-
1. Check if the httpd process is running and if the process is running then do not restart the httpd again.
2. If the process is stopped then start the httpd process again
This check will ensure that your httpd is always up and running no matter how many times you restart the server
If I have 50 EC2 instance Then how I start all instance at single time because EOD I need to stop all EC2 instance but on next I need start all the task for completing work
Can I need to manually start one by one
userdata script from the lab instruction is not properly copied and pasted while creating the instance[i-04f06eefb95dc4421]
I'm getting this error
I could not see what error you are getting?
very nice
Thanks
Thank you very much Sir. Could you pls do a video on how to update user data content after creating an EC2 via launch template? I observed that if updated on EC2 instance itself with #cloud-boothook, it won't connect. So i'm thinking it could connect, if updated via the launch template, but I don't know how. I'd appreciate it if you can pls do a video on this. Thank you Sir.
No I do not think the launch template will help you need to restart the ec2 instance after you make a change in the user data script
@@RahulWagh I'm sorry, I do not understand you Sir.
Why couldn't you just update the existing script? Why did you create a new instance?
Thnx à lot
You are welcome
👍👍
😊
I did same my script not working please help on this
Check the logs of startup scripts
👍
Welcome
Th@nkyou $!r
You are welcome
You look like Sundar Pichai...