π‘οΈ AWS ECS Service is potentially idleπ’
- Contextual name: π‘οΈ Service is potentially idleπ’
- ID:
/ce/ca/aws/ecs/service-idle - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
COST,PERFORMANCE
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
- π AWS ECS Service
- π AWS ECS Service - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
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
INCOMPLIANTif 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β
Remediationβ
Review and Pause the ECS Serviceβ
- 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.
- 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.
- 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β
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ Cloudaware Framework β πΌ Waste Reduction | 32 | no data | |||
| πΌ Cloudaware Framework β πΌ Workload Efficiency | 31 | no data |