AWS Instance Scheduler Step by Step | Tutorial to automate EC2/RDS start/stop | Multi Account
In this video we talk about how to automate EC2/RDS instances start/stop during off hours. Video also shows demo how to use AWS Instance Scheduler to control EC2/RDS in different accounts.
Пікірлер: 20
It's a nice video for AWS Instance Scheduler. Thank you.
Thank you so much for this! ❤❤
Thanks!! Good video!!
@clouddeepdive
2 жыл бұрын
Thank you Ayush, hope you subscribed to the channel!
Thank you very much for the ec2 Instance Scheduler Demo @CloudDeepDive. I have a question. Before Scheduler picks defined period from tags to execute that period, I want job to check if instance is first in stop or running state. And if instance is in running state, than I want job to skip that instance and do not stop them. Is this something possible to achieve with this?
@clouddeepdive
2 жыл бұрын
Thank you Swapnil for watching! Can you elaborate more on this - "if instance is in running state, than I want job to skip that instance and do not stop them" I am not clear on the question you have.
@swapnilpatel4150
2 жыл бұрын
@@clouddeepdive So lets the requirement is to start 50 instances every sunday 6pm and stop at mid night. so 1st sunday, lets say all 50 are in stop state, job is going to start them all. at midnight, it is going to stop all 50. But next sunday at 6pm, when job tried to start all 50, 10 were already running, so job is going to start only 40 instances. But at midnight, job must stop only those 40 which it started at 6pm and do not touch those 10 in running state. so essentially, when it comes stop the instances, it should stop only those previous job started.
@swapnilpatel4150
2 жыл бұрын
Just checking if this is possible.
@clouddeepdive
2 жыл бұрын
For this you need to play with the tags on those instances. Instance scheduler works based on the tags you have on the resource.
What if I want to change the timings of my office-hours period in dynamodb?
@clouddeepdive
3 жыл бұрын
you can do that by adding a different period and use that in your schedule or by editing exiting period you are using.
Sir how to Increase the RDS size from 4xlarge to 16xlager, by automated and scheduling the particular time will increase and particular time will decrease it automatically.
@clouddeepdive
2 жыл бұрын
AWS Instance Scheduler support only Start/Stop of EC2/RDS. - docs.aws.amazon.com/solutions/latest/instance-scheduler/welcome.html If you want to automate RDS scaling then you need to write something custom, I am not aware of any existing solution right now, will do some research and share if I will find any existing solution.
if we assign the time to start & stop will that save the work which was working while shutdown.
@clouddeepdive
3 жыл бұрын
Thank you Sharath for watching this video. Hope you subscribed to our channel as well. Stop and Start will be like boto3 function which will be called from Lambda based on the timings you provide. You need to make sure you are not running any critical workload which fall on this schedule. Here is the AWS documentation on this - docs.aws.amazon.com/solutions/latest/instance-scheduler/welcome.html
@sharathdn8841
3 жыл бұрын
@@clouddeepdive thank you very much for you reply it was very helpful
I tried this, and it is working fine but it is not starting my instances on maintinence windows.
Hello sir, I would like to know if this function will cost money for using?
@clouddeepdive
2 жыл бұрын
Hi Yeko, As this solution use different AWS services like Lambda, DynamoDb it will cost you money, how much depends on the usage.
@chintalapativenkataramarahul
Жыл бұрын
In AWS documentation it is mentioned that it costs around 10 dollars per month to run this.