get_ecs_rightsizing_recommendations
Identifies ECS Fargate services with over-provisioned CPU allocations using Container Insights, recommending downsizing opportunities to reduce costs.
Instructions
Find ECS Fargate services with over-provisioned CPU allocations.
Uses Container Insights CpuUtilized metric. Services using less than cpu_threshold% of their allocated vCPUs are candidates for downsizing. Fargate billing is per vCPU-hour, so reducing allocation directly cuts cost.
Requires Container Insights to be enabled on the ECS cluster.
Args: cpu_threshold: Flag services with average CPU below this % (default 20%). regions: AWS regions to scan. Defaults to all opted-in regions.
Examples: - "Which ECS Fargate services are over-provisioned?" - "Find oversized ECS tasks we can right-size" - "How much could we save by reducing Fargate CPU allocations?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regions | No | ||
| cpu_threshold | No |