Why it matters
Test services, old versions and abandoned experiments are easy to forget in a busy cluster, and each keeps paying for its tasks around the clock.How nOps finds it
This recommendation comes from AWS Compute Optimizer, not from nOps. Compute Optimizer marks a service as idle from its CloudWatch utilization over the lookback period. nOps imports the recommendation daily from AWS Cost Optimization Hub, which returns one recommendation per resource (the one with the highest saving), and shows AWS’s estimated monthly saving, which already takes your discounts into account.Before you start
AWS Compute Optimizer and AWS Cost Optimization Hub enabled for the account (or the whole organization). Permission to update and delete ECS services (ecs:UpdateService, ecs:DeleteService).
How to implement
- Check the service’s owner, recent deployments and any load balancer target groups or service discovery entries that point at it.
- Scale it to zero first and wait a few days:
aws ecs update-service --cluster CLUSTER --service SERVICE --desired-count 0. - If nothing breaks, delete it (ECS console: Clusters → Services → Delete service, or
aws ecs delete-service). - Remove it from Terraform, CloudFormation or your deployment pipeline so it is not recreated.
Risks and considerations
- A service that is idle most of the time may still be needed for occasional jobs or failover.
- Deleting the service does not delete its task definition, so you can recreate it later.
- Scaling to zero first is an easy way to test, and scaling back up restores it.