调度现有AWS EC2实例来启动/停止 [英] Scheduling an existing AWS EC2 instance to start/stop

查看:382
本文介绍了调度现有AWS EC2实例来启动/停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我使用的是自动缩放命令行工具推出一个新的EC2实例一次每天和运行完成时终止自身的脚本。现在我需要做同样的事情用不同的脚本,但是这一次,需要安装一些Python模块。所以,我想安排一个的单一,现有的的实例的启动/停止,而不是一个全新的实例的启动/终止。我已经冲刷亚马逊的文档/博客,但我不能确定是否支持此功能与自动缩放。这怎么可能实现呢?

Right now I am using the Auto Scaling Command Line Tool to launch a new EC2 instance once per day and run a script that terminates itself upon completion. Now I need to do the same thing with a different script, but this one requires several Python modules to be installed. Therefore, I would like to schedule the start/stop of a single, existing instance rather than the launch/termination of a brand new instance. I've scoured Amazon's documentation/blogs but I can't determine if this functionality is supported with Autoscaling. How could this be accomplished?

推荐答案

我的最终解决办法是建立一个实例,我想要的方式,然后从它创建AMI。我自动缩放设置,然后开始/停止了AMI的一个实例。

My eventual solution was to set up an instance the way I wanted and then create an AMI from it. My autoscaling setup then starts/stops an instance of that AMI.

这篇关于调度现有AWS EC2实例来启动/停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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