If an instance is unreachable, try rebooting it using the AWS CLI or AWS Management Console.
AWS CLI:
aws ec2 reboot-instances --instance-ids i-1234567890abcdef0
Console:
Check instance logs using the EC2 Serial Console or AWS CLI:
aws ec2 get-console-output --instance-id i-1234567890abcdef0
Or use the EC2 console:
If the instance is running but unresponsive, capture a screenshot to diagnose issues.
aws ec2 get-instance-screenshot --instance-id i-1234567890abcdef0
If an EC2 instance becomes unreachable due to a host failure, AWS automatically moves it to another host.
To manually recover:
aws ec2 stop-instances --instance-ids i-1234567890abcdef0 aws ec2 start-instances --instance-ids i-1234567890abcdef0
Check if your instance rebooted unexpectedly due to AWS maintenance.
Use AWS CLI to check instance status:
aws ec2 describe-instance-status --instance-id i-1234567890abcdef0
Or review **CloudTrail** logs:
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=RebootInstances
Welcome to our comprehensive collection of programming language cheatsheets! Whether you're a seasoned developer or a beginner, these quick reference guides provide essential tips and key information for all major languages. They focus on core concepts, commands, and functions—designed to enhance your efficiency and productivity.
ManageEngine Site24x7, a leading IT monitoring and observability platform, is committed to equipping developers and IT professionals with the tools and insights needed to excel in their fields.
Monitor your IT infrastructure effortlessly with Site24x7 and get comprehensive insights and ensure smooth operations with 24/7 monitoring.
Sign up now!