Skip to main content

πŸ›‘οΈ AWS ECS Service is potentially idle🟒

Stats​

not available

Logic​

Description​

Open File

Description​

Identify running Amazon ECS replica services whose CPU and memory averages are near zero over 14 days. This is a candidate for an owner review of workload activity and retirement.

Rationale​

An unused service can continue to consume Fargate task capacity or hold reservations on EC2. Scheduled jobs, low-frequency consumers, and standby services can have similarly low averages while serving a valid purpose.

Audit​

This policy marks an AWS ECS Service as INCOMPLIANT if CloudWatch: CPU Utilization, 14-Day and CloudWatch: Memory Utilization, 14-Day are both below 1%.

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. This excludes currently scaled-to-zero services and services with unsettled task counts. Eligible services with either average at or above 1% are COMPLIANT.

Remediation​

Open File

Remediation​

Review and Pause the ECS Service​

  1. Review CPU and memory utilization, task counts, metric coverage, and recent deployments in CloudWatch and Amazon ECS. Check requests, queue activity, and scheduled or event-driven jobs over a representative workload cycle.
  2. Confirm with the service owner whether the workload can be paused. Check downstream dependencies and any standby or disaster recovery role. If the service must stay available, evaluate smaller tasks or fewer replicas under representative load.
  3. Record the current desired count, Service Auto Scaling settings, and scheduled actions. Confirm how the service will resume. ECS publishes service CPU and memory metrics while tasks are running, so verify an independent demand signal or plan to restore capacity manually. Amazon ECS CloudWatch metrics Β· Amazon ECS Service Auto Scaling

... see more

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Waste Reduction32no data
πŸ’Ό Cloudaware Framework β†’ πŸ’Ό Workload Efficiency31no data