An instance shows `1/2 checks passed` and you cannot reach it.
BeginnerTroubleshootingEC2, Auto Scaling and Load Balancing
Answer
Likely causes → If the system status check fails, the problem is AWS hardware or the host (power, network, physical host). If the instance status check fails, the problem is inside the OS: a kernel panic, a broken network config, a full disk or bad /etc/fstab.
Diagnose →
aws ec2 describe-instance-status --instance-ids i-0abc \
--query 'InstanceStatuses[].[SystemStatus.Status,InstanceStatus.Status]'
aws ec2 get-console-output --instance-id i-0abc --latest --output text | tail -50
aws ec2 get-console-screenshot --instance-id i-0abc --query ImageData --output text | base64 -d > shot.jpg
Fix →
- System check failed: stop and start the instance (not reboot), which moves it to new hardware
- Instance check failed: read the console output, then fix through the EC2 Serial Console or by attaching the root volume to a rescue instance
Prevent → Add a CloudWatch alarm on StatusCheckFailed_System with the recover action, and run stateless instances behind an ASG.