Auto Shutdown and Start Amazon EC2 Instance

后端 未结 14 1130
执念已碎
执念已碎 2020-12-04 06:49

Can I automatically start and terminate my Amazon instance using Amazon API? Can you please describe how this can be done? I ideally need to start the instance and stop the

14条回答
  •  鱼传尺愫
    2020-12-04 07:21

    I recommend you take a look at the EC2 Getting Started Guide, which shows you how to do what you need using the EC2 command line tools. You can easily script this into a cron job (on Linux / UNIX) or scheduled job on Windows to call the start and stop commands at a given time.

    If you want to do this from your own code, you can use the SOAP or REST APIs; see the Developer Guide for details.

提交回复
热议问题