본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

aws-ecs-monitor

briancolinger 제작

DevOps & Cloud
1.6kclawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

AWS ECS production health monitoring with CloudWatch.

설명

이 스킬이 하는 일

Monitors AWS ECS service health by running HTTP probes, checking ECS task counts, ALB target group status, and SSL certificate expiry. Pulls CloudWatch logs and categorizes errors by type — panics, OOM, timeouts, 5xx responses, and container restarts. When health checks fail, it can automatically trigger log analysis to identify the cause.

Combines HTTP health probes, ECS status, ALB target checks, SSL expiry, and CloudWatch log analysis in one workflow instead of navigating multiple AWS Console pages.

사용 시점

  • Checking ECS service status after a failed deployment
  • Finding OOM or panic errors in container logs
  • Verifying SSL certificate expiry before renewal deadlines
  • Detecting repeated container restarts in production
  • Getting a cross-service error summary after an incident

예시 워크플로

입력

User asks: Why is my API returning 5xx errors?

에이전트
  1. 1

    Runs ecs-health.sh against the cluster to check ECS service status and ALB target group health

  2. 2

    Detects unhealthy targets and triggers auto-diagnose via cloudwatch-logs.sh

  3. 3

    Pulls CloudWatch logs for the failing service over the past 60 minutes

  4. 4

    Categorizes errors into types (http_5xx, timeout, connection_error, etc.) and filters out ALB health check noise

  5. 5

    Reports error counts per category and flags any container restarts

출력

Error breakdown showing 47 http_5xx responses, 3 connection_error entries, and 2 container restarts in the last hour

요구 사항

  • AWS account with an ECS cluster
  • AWS CLI configured with credentials (access key or IAM role)
  • IAM permissions: ecs:ListServices, ecs:DescribeServices, elasticloadbalancing:DescribeTargetGroups, elasticloadbalancing:DescribeTargetHealth, logs:FilterLogEvents, logs:DescribeLogGroups

설치

clawhub install briancolinger/aws-ecs-monitor

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크