This page is generated from devops-agent/eks-cost-intelligence/SKILL.md. Edit the source, not this page.
EKS Cost Intelligence — DevOps Agent Port
Overview
This skill performs a live cost efficiency assessment of an EKS cluster. It connects via AWS APIs and the Kubernetes API, analyzes cost signals across 6 dimensions, calculates a weighted Cost Score (0-100), and produces a detailed report with dollar-quantified findings, prioritized recommendations, and pre-filled remediation snippets.
This skill is focused on live cost assessment — answering the question: "Where is this cluster wasting money, and how much can I save?"
Prerequisites
Required IAM Permissions (Agent Space Role)
A ready-to-use IAM policy document is available at references/iam-policy.json — attach it directly to your Agent Space execution role.
The following permissions are included:
EKS (required):
eks:ListClusterseks:DescribeClustereks:ListNodegroupseks:DescribeNodegroupeks:ListAddons
EC2 (required):
ec2:DescribeInstancesec2:DescribeVolumesec2:DescribeSubnetsec2:DescribeVpcEndpoints
Elastic Load Balancing (required):
elasticloadbalancing:DescribeLoadBalancerselasticloadbalancing:DescribeTargetGroupselasticloadbalancing:DescribeTargetHealth
Cost Explorer (optional — enables dollar-accurate spend):
ce:GetCostAndUsagece:GetCostForecast
CloudWatch (optional — enables utilization-based analysis):
cloudwatch:GetMetricDatacloudwatch:ListMetricslogs:StartQuerylogs:GetQueryResults
Kubernetes API access (required):
- The Agent Space must have Kubernetes API access to the target cluster (via EKS Access Entry or aws-auth ConfigMap)
- Required RBAC:
get,liston pods, nodes, deployments, services, persistentvolumeclaims, configmaps, secrets, namespaces, events, endpointslices
When to Use
Activate when the goal involves:
- Identifying waste — "what's the biggest cost driver?" or "where am I over-provisioned?"
- Running a cost audit, cost review, or spending assessment against a live cluster
- Producing dollar-denominated findings to justify optimization work
- Cost attribution by namespace, team, or workload
- Preparing a FinOps review or cost reduction initiative
- Measuring a cluster's cost efficiency score (0-100)
Out of scope (do not assess):
- General cost optimization best practices without a live cluster — advisory guidance, not a live assessment
- Cluster design for cost efficiency — architecture decisions, not point-in-time measurement
- Operational health reviews — configuration quality, not cost posture
- Cluster discovery or reconnaissance — topology mapping, not cost analysis
- Upgrade readiness — version compatibility, not spending efficiency