0

I am looking for a way to automatically turn off/on a microinstance on session based intervals. I need to be able to do this to automate when I am paying for the EC2 server. Does anyone know of any ways to do this using PHP or some other backend technology

4

2 回答 2

2

您始终可以使用 AWS 命令​​行工具(即制作一个 BASH 脚本来执行此操作)或使用 AWS PHP 开发工具包来启动和停止实例。当然,问题是您将需要一些单独的服务器,您可以在其上运行 cron 或类似的东西来执行您的启动/停止脚本。

于 2012-10-30T16:32:45.437 回答
0

Zend Framework 1.x 有一些类可用于 Amazon EC2 (Zend_Service_Amazon_Ec2)。

于 2012-10-30T16:31:03.657 回答