EC2

Icon

Icon 1 4 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: aws-c7n-codecollection


Count the number of EC2 instances that are stale or stopped

Tasks:
  • Check for stale AWS EC2 instances in AWS Region `${AWS_REGION}` in AWS account `${AWS_ACCOUNT_ID}`
  • Check for stopped AWS EC2 instances in AWS Region `${AWS_REGION}` in AWS account `${AWS_ACCOUNT_ID}`
  • Check for invalid AWS Auto Scaling Groups in AWS Region `${AWS_REGION}` in AWS account `${AWS_ACCOUNT_ID}`
  • Generate Health Score

Icon 1 3 Troubleshooting Commands

Icon 2 Contributed by saurabh3460

Icon 2 Codecollection: aws-c7n-codecollection


Check for EC2 instances that are stale or stopped

Tasks:
  • List stale AWS EC2 instances in AWS Region `AWS_REGION` in AWS account `AWS_ACCOUNT_ID`
  • List stopped AWS EC2 instances in AWS Region `AWS_REGION` in AWS account `AWS_ACCOUNT_ID`
  • List invalid AWS Auto Scaling Groups in AWS Region AWS_REGION in AWS account AWS_ACCOUNT_ID

Icon 1 7 Troubleshooting Commands

Icon 2 Contributed by Jonathan Funk

Icon 2 Codecollection: rw-public-codecollection


Performs a suite of security checks against a set of AWS EC2 instances. Checks include untagged instances, dangling volumes, open routes.

Tasks:
  • Check For Untagged instances
  • Check For Dangling Volumes
  • Check For Open Routes
  • Check For Overused Instances
  • Check For Underused Instances
  • Check For Underused Volumes
  • Check For Overused Volumes

Icon 1 5 Troubleshooting Commands

Icon 2 Contributed by

Icon 2 Codecollection: rw-public-codecollection


Triage and troubleshoot performance and usage of an AWS EC2 instance

Tasks:
  • Get Max VM CPU Utilization In Last 3 Hours
  • Get Lowest VM CPU Credits In Last 3 Hours
  • Get Max VM CPU Credit Usage In Last 3 hours
  • Get Max VM Memory Utilization In Last 3 Hours
  • Get Max VM Volume Usage In Last 3 Hours