Skip to main content

Description

Identify running Amazon ECS services that need a capacity review because CPU or memory use averaged high relative to task resources over 14 days.

Rationale​

Sustained CPU or memory pressure can indicate limited per-task capacity, too few replicas, or an autoscaling or placement constraint. Service metrics measure utilization against task allocations. CPU usage can exceed a container-level share and memory can exceed a soft reservation. Use throttling, task stops, latency, or errors to assess operational impact.

Audit​

This policy marks an AWS ECS Service as INCOMPLIANT if CloudWatch: CPU Utilization, 14-Day or CloudWatch: Memory Utilization, 14-Day is at least 80%. An eligible service is COMPLIANT if both averages are below 80%.

The policy evaluates ACTIVE services with REPLICA scheduling that were created at least 14 UTC calendar days ago. Running Count must be positive and match Desired Count, and Pending Count must be zero. Assessment requires both 14-day averages.