Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS - How to reboot or restart EC2 instance from CloudWatch Alarm?

Sometimes my application dies without any reason and I can detect that using CloudWatch and CPU usage metric going down.

At this moment I want to restart the java application or the whole EC2 instance.

Any suggestions how can I achive that?

Thanks.

like image 642
Bilgin Ibryam Avatar asked Nov 30 '25 02:11

Bilgin Ibryam


1 Answers

AWS CloudWatch now provides a reboot EC2 instance action.

like image 105
Weiwu Avatar answered Dec 02 '25 18:12

Weiwu