Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EC2 startup on schedule

Tags:

I need to start up an EC2 instance at (say) 6am every day. The constraints are that I'd like to avoid having a computer running all day to do the startup or use a paid solution like ylastic's.

The solution at alestic, is the closest so far. The downside of this solution is that the startup time is high because of the time required to install custom software and to move around data.

Is there a way to just boot up an instance instead of creating a new instance each time as shown in this example?

like image 611
fodon Avatar asked Jan 30 '12 19:01

fodon


People also ask

Can I schedule my EC2 instance?

In 2018, AWS launched the AWS Instance Scheduler, a new and improved scheduling solution that enables customers to schedule Amazon EC2 instances, Amazon Relational Database Service (Amazon RDS) instances, and more. We encourage customers to migrate to AWS Instance Scheduler for future updates and new features.

Does AWS have a scheduler?

The AWS Instance Scheduler is a solution that enables customers to easily configure custom start and stop schedules for their Amazon EC2 and Amazon RDS instances. The solution is easy to deploy and can help reduce operational costs for both development and production environments.

How do I check my EC2 schedule?

Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . You can view scheduled events in the following screens: In the navigation pane, choose Events. Any resources with an associated event are displayed.


1 Answers

You can now do this with Amazon OpsWorks. After you've set up the main stuff, just make a new instance and set its scaling type to "time-based" (you can't change this for some reason once the instance has been made):

enter image description here

Now, just click on the "Instances > Time-Based" category and setup the schedule:

enter image description here

like image 104
Blender Avatar answered Oct 01 '22 04:10

Blender