Skip to content

Instantly share code, notes, and snippets.

@mamun67
Created September 4, 2018 11:13
Show Gist options
  • Select an option

  • Save mamun67/79ee5a607b3f46255828a6fdfcd41dbb to your computer and use it in GitHub Desktop.

Select an option

Save mamun67/79ee5a607b3f46255828a6fdfcd41dbb to your computer and use it in GitHub Desktop.
EC2 Troubleshooting Commands
To view the status of all instances, use the following command:
aws ec2 describe-instance-status
To get the status of all instances with a instance status of impaired:
aws ec2 describe-instance-status --filters Name=instance-status.status,Values=impaired
To get the status of a single instance, use the following command:
aws ec2 describe-instance-status --instance-ids i-1234567890abcdef0
System Status Check
The following are examples of problems that can cause system status checks to fail:
Loss of network connectivity
Loss of system power
Software issues on the physical host
Hardware issues on the physical host that impact network reachability
Instance Status Check
The following are examples of problems that can cause system status checks to fail:
Loss of network connectivity
Loss of system power
Software issues on the physical host
Hardware issues on the physical host that impact network reachability
Instance Metrics
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html
CloudWatch Monitoring Scripts
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html
Ec2-Rescue
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Linux-Server-EC2Rescue.html
TroubleShoot Link
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment