EC2 startup on schedule

后端 未结 11 791
后悔当初
后悔当初 2020-12-01 09:13

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 solu

11条回答
  •  情歌与酒
    2020-12-01 10:11

    • Same here! Shocked to see Amazon does not provide a built-in way to simply schedule your EC2 to start & stop at a certain time. (Well, not that shocked as they probably don't want you to be able to just turn it off, right? :-)

    • ANSWER: I found the Auto-Scaling method the best way to automate this and for free, w/o the need for third party apps or a separate server running 24/7. A good understanding of AS, AMI's and EC2's is needed here.

      Goto URL link below to see how you can add "SCHEDULED ACTIONS" to your Auto-scaling groups. Works great!

      I can now have my EC2 server spun up at 12noon and spin down (Really it gets terminated) @ 8PM. Very cool. Good luck!

    • Below is screenshot of my settings. These setting will create and launch an EC2 everyday for one hour a day. CHEERS!

    http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html#sch-actions_rules

    Auto-Scaling Scheduled Actions:

提交回复
热议问题