如果状态已停止,则自动启动Amazon EC2实例

时间:2022-09-27 23:10:51

If my instance state is stopped how can automatically start?

如果我的实例状态停止怎么能自动启动?

Need to check every minute state of instance.

需要检查每一分钟的实例状态。

EDIT: Have few instances activated and need to check for every instance.

编辑:激活了很少的实例,需要检查每个实例。

1 个解决方案

#1


0  

John Rotenstein is asking you some good questions, that may lead to a better answer, but if you just want to know how to start an instance:

John Rotenstein问你一些好问题,这可能会带来更好的答案,但如果你只是想知道如何启动一个实例:

aws ec2 start-instances --instance-ids i-1234567890abcdef0

where i-1234567890abcdef0 is the instance id you want to start.

其中i-1234567890abcdef0是您要启动的实例ID。

#1


0  

John Rotenstein is asking you some good questions, that may lead to a better answer, but if you just want to know how to start an instance:

John Rotenstein问你一些好问题,这可能会带来更好的答案,但如果你只是想知道如何启动一个实例:

aws ec2 start-instances --instance-ids i-1234567890abcdef0

where i-1234567890abcdef0 is the instance id you want to start.

其中i-1234567890abcdef0是您要启动的实例ID。