Skip to content

EC2 instance shutdown without alert & CloudTrail event.

0

Greetings, On 9th December 2024, our instance with the ID i-0b0327741727ad22a shut down unexpectedly at 8 AM UTC+8. After investigating our Syslog with the 'last' command to see what caused the instance shutdown, unfortunately, nothing positive came back, and neither CloudTrail does (Filtered with the event name to confirm that it was not triggered by the user). I hope the above information can be helpful when addressing the issue.

2 Answers
1

Hello.

If the 'stopinstance' action is not found in CloudTrail, it is likely that the instance was not stopped by AWS API but rather through OS shutdown or similar operations.
Please check to see if there is any kind of high load occurring before stopping, or if there is a shutdown within the OS.

EXPERT
answered a year ago
AWS
EXPERT
reviewed a year ago
1

Hello!

https://repost.aws/knowledge-center/ec2-instance-automatic-reboot-cause https://repost.aws/knowledge-center/ec2-windows-identify-stop-reboot

These 2 knowledge center articles cover this exact topic for both Linux & Windows EC2 instances. If you cannot find a cloudtrail event, then it is likely that it is an OS initiated shutdown from within the EC2. This can happen due to crashing, kernel panic etc.

If you have not already, check on your AWS Health Dashboard to see if there were any notifications around degraded hardware for this instance. In cases where hardware goes bad, we may take your instance offline to move it to another host. This will always have a health event associated, so if there is not one present, it's not due to bad hardware.

Check your Health Dashboard The AWS Health Dashboard reports multiple instance reboot events, such as simplified automatic recovery, scheduled maintenance, and retirement. To act on the health notifications, either reschedule the scheduled event, or manually stop and start the instance. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-configuration-recovery.html https://docs.aws.amazon.com/health/latest/ug/getting-started-health-dashboard.html https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/reschedule-event.html

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.