EC2启动的时间表 [英] EC2 startup on schedule

查看:142
本文介绍了EC2启动的时间表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每天都需要启动时(比如说)早上6点EC2实例。约束条件是,我想,以避免在计算机上运行的所有每天做启动或使用像ylastic的一个付费的解决方案。

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.

解决方案在alestic,是迄今为止最接近。这种解决方案的缺点是启动时间是因为安装定制软件,并左右移动数据所需的时间高。

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.

有没有办法只启动了一个实例,而不是创建一个新的实例,如下面的每一次<一href="http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_CreateLaunchConfiguration.html">example?

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

推荐答案

鉴于你的限制,所需要的功能,遗憾的是不包括作为的 AWS产品和放大器;服务的现在:

Given your constraints, the desired functionality is unfortunately not covered by the two dedicated automation mechanisms available as AWS Products & Services right now:

  • 自动缩放 - 的是一个Web服务设计为自动启动或终止亚马逊弹性计算云(Amazon EC2)实例,基于用户定义的策略,计划和健康检查。
  • AWS CloudFormation - 为开发人员和系统管理员提供了一个简单的方法来创建和管理相关AWS资源,配置和更新集合他们在一个有序,predictable时尚。
  • Auto Scaling - is a web service designed to automatically launch or terminate Amazon Elastic Compute Cloud (Amazon EC2) instances based on user-defined policies, schedules, and health checks.
  • AWS CloudFormation - gives developers and systems administrators an easy way to create and manage a collection of related AWS resources, provisioning and updating them in an orderly and predictable fashion.

虽然开始/停止/概念性地重新引导的实例落入的管理的后者的类,它是不可用像这样(其顺便的原因是我们提供了一个单独的任务专为内这一功能与此同时德precated 竹AWS插件及其后继任务对于AWS )。

While starting/stopping/rebooting an instance conceptually falls into the manage category of the latter, it is not available like so (which incidentally is the reason we provide a separate Task specifically for this functionality within the meanwhile deprecated Bamboo AWS Plugin and its successor Tasks For AWS).

因此​​在我的回答中列出的方法来如何在上班时间开/关云实例仍然适用,尽管有额外的限制,你就需要找到一个提供商托管脚本或持续集成的解决方案是免费的:

Consequently the approaches outlined in my answer to How to turn on/off cloud instances during office hours are still applicable, albeit with the additional constraint that you would need to find a provider hosting your script or continuous integration solution for free:

  • 托管脚本有例如成为可能相当长一段时间已经被那些cron作业供应商的方式。

  • Hosting scripts has e.g. been possible for quite a while already by means of those cron job providers.

鉴于目前爆炸平台即服务(PaaS)解决方案有颇有些供应商,这将让你做主持人脚本和/或持续集成的解决方案或另一种方式为好。

Given the current explosion in Platform as a Service (PaaS) solutions there are quite some providers, that will allow you to do host scripts and/or continuous integration solutions one way or another as well.

显然,你需要验证,无论是使用免费的层可用于类似用途,这是可以接受的,根据各自的条款的问题,供应商使用

Obviously you'll need to verify, whether using the free tiers available for purposes like this is acceptable according to the respective Terms of Use of a provider in question.

这篇关于EC2启动的时间表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆