简体   繁体   English

根据计划启动和停止EC2实例

[英]start and stop EC2 instances based on a schedule

How can I start or stop EC2 instances based on a schedule (night, weekend)? 如何根据时间表(晚上,周末)启动或停止EC2实例? are AWS EC2 API only solution for this? 是AWS EC2 API唯一的解决方案吗?

AWS does not have any built-in method to schedule instances to start or stop. AWS没有任何内置方法来安排实例启动或停止。 You have a few options: 您有几种选择:

  1. Run your own EC2 instance that used cron or Task Manager to run your own scripts using the AWS SDK/CLI to start and stop the instances. 运行您自己的EC2实例,该实例使用cron或Task Manager使用AWS SDK / CLI来启动和停止实例,以运行自己的脚本。
  2. Use scheduled Auto Scaling to terminate and re-launch EC2 instances for you. 使用计划的Auto Scaling为您终止和重新启动EC2实例。
  3. Use AWS Lambda to execute a Lambda function that starts and stops your instances, using the Lambda scheduler to schedule the execution of your Lambda function. 使用AWS Lambda执行启动和停止您的实例的Lambda函数,并使用Lambda调度程序来调度Lambda函数的执行。
  4. Use a third-party service that will start and stop your EC2 instances for you. 使用将为您启动和停止EC2实例的第三方服务。

You can try my software, CloudRoboAWSScheduler. 您可以尝试使用我的软件CloudRoboAWSScheduler。 Download it from http://cloudrobo.net/download/ http://cloudrobo.net/download/下载

Please go through the setup details mentioned in http://cloudrobo.net/setup/ 请仔细阅读http://cloudrobo.net/setup/中提到的设置详细信息

It is absolutely free. 它是完全免费的。 Features: - Easy to use GUI - START / STOP EC2 Instances - Reduce costs by starting and stopping your EC2 instances automatically - Create dynamic schedules using ClouRobo AWS scheduler - Manage multiple accounts in different AWS regions - Easy to use user interface - Installs on Windows Server 2008/2012 or Windows 7/8/10 功能:-易于使用的GUI-启动/停止EC2实例-通过自动启动和停止EC2实例来降低成本-使用ClouRobo AWS Scheduler创建动态日程表-管理不同AWS区域中的多个账户-易于使用的用户界面-在Windows上安装Server 2008/2012或Windows 7/8/10

Note: This is a beta release. 注意:这是一个beta版本。

-Viswanath -维斯瓦纳特

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM