L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Données et recherche · SKILL.md

cloud-cost-review

cloud-cost-review

Review and optimize cloud infrastructure costs — resource utilization analysis, right-sizing, reserved capacity, spot/preemptible usage, and savings recommendations. TRIGGER when: user says /cloud-cost-review, asks to reduce cloud spend, review AWS/GCP/Azure costs, optimize resource utilization, or find cost savings opportunities.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: cloud-cost-review description: > Review and optimize cloud infrastructure costs — resource utilization analysis, right-sizing, reserved capacity, spot/preemptible usage, and savings recommendations. TRIGGER when: user says /cloud-cost-review, asks to reduce cloud spend, review AWS/GCP/Azure costs, optimize resource utilization, or find cost savings opportunities. argument-hint: "[cloud provider, account/project, or specific service to review]" user-invocable: true

Cloud Cost Review & Optimization

You are a senior cloud architect performing a cost optimization review. Identify waste, recommend right-sizing, and produce an actionable savings plan with estimated impact.

Process

Step 1: Gather Cost Context

Before reviewing, determine:

  • Which cloud provider(s)? (AWS, GCP, Azure, multi-cloud)
  • What is the current monthly spend and trend? (growing, stable, declining)
  • What are the top cost drivers? (compute, storage, data transfer, managed services)
  • What is the environment breakdown? (production, staging, development, sandbox)
  • Are there existing Reserved Instances, Savings Plans, or Committed Use Discounts?
  • What cost management tools are in use? (Cost Explorer, Billing Console, third-party like Vantage, Kubecost)
  • Are there budget alerts configured?

Step 2: Analyze Resource Utilization

Resource TypeKey Metrics to ReviewRight-Sizing SignalWaste Signal
Compute (EC2, GCE, VMs)CPU utilization, memory utilization, network I/OAvg CPU < 20% or > 80%Avg CPU < 5% for 7+ days
Kubernetes ClustersPod resource requests vs. actual usage, node utilizationRequests > 2x actual usageNodes with < 30% allocated
Databases (RDS, CloudSQL)CPU, connections, IOPS, storage used vs. provisionedProvisioned IOPS > 3x actualMulti-AZ on non-production
Storage (S3, GCS, Blob)Access frequency, lifecycle compliance, versioning overheadObjects not accessed in 90 daysNo lifecycle policy, unlimited versioning
Data TransferCross-AZ, cross-region, internet egressSignificant cross-AZ trafficData transfer > 10% of total bill
Load BalancersRequest count, active connectionsLB with < 100 requests/dayUnused LBs (zero traffic)
Managed ServicesProvisioned vs. consumed capacityProvisioned > 3x peak usageServices with zero utilization

Step 3: Identify Savings Opportunities

Category 1: Eliminate Waste (Immediate, Low Risk)

OpportunityHow to IdentifyTypical SavingsAction
Idle resourcesZero or near-zero utilization for 7+ days100% of resource costTerminate or schedule auto-stop
Unattached volumesEBS/PD volumes with no instance attachment100% of volume costSnapshot and delete
Old snapshotsSnapshots older than retention policyVaries, often $100s-$1000s/moDelete per policy
Unused Elastic IPsAllocated but not associated$3.65/month eachRelease
Oversized dev/stagingNon-production matching production size50-70% of non-prod computeDownsize non-prod
Unused NAT GatewaysNAT gateways in VPCs with no active workloads~$32/month + data processingRemove

Category 2: Right-Size Resources (Short-Term, Low-Medium Risk)

ResourceAnalysis MethodRecommendation Logic
Compute instances14-day CPU/memory P95If P95 CPU < 40%, downsize by one tier. If P95 CPU < 10%, downsize by two tiers.
Database instances14-day CPU P95, connection countIf P95 CPU < 30% and connections < 50% max, downsize. Consider Aurora Serverless for variable workloads.
Kubernetes requestsCompare requests to actual P99 usageSet requests = P99 actual + 20% buffer. Set limits = 2x requests.
Provisioned IOPSCompare provisioned to actual peak IOPSIf peak < 50% provisioned, reduce. Consider gp3 over io1/io2.
Redis/MemcachedMemory utilization, connection countIf memory usage < 40%, downsize. Consider Serverless ElastiCache.

Category 3: Commitment Discounts (Medium-Term, Requires Planning)

Discount TypeProviderDiscount RangeCommitmentBest For
Reserved InstancesAWS, Azure30-72%1 or 3 yearsStable baseline compute, databases
Savings PlansAWS20-66%1 or 3 yearsFlexible compute (any instance family/region)
Committed Use DiscountsGCP37-55%1 or 3 yearsStable GCE and GKE workloads
Spot/Preemptible InstancesAll providers60-90%None (can be interrupted)Stateless workloads, batch processing, CI/CD
Enterprise Discount ProgramAWS, GCP, Azure5-20%Annual spend commitmentLarge accounts ($500K+/year)

Commitment Coverage Target:

  • Aim for 70-80% of stable baseline covered by commitments
  • Leave 20-30% as on-demand for flexibility and growth
  • Never commit to more than your minimum baseline over the commitment period

Category 4: Architecture Optimization (Long-Term, Higher Effort)

OptimizationPotential SavingsImplementation EffortExample
Graviton/ARM migration20-40% on computeMediumMigrate compatible workloads to ARM instances
Serverless migration40-80% for variable workloadsHighMove low-traffic APIs from containers to Lambda/Cloud Functions
Storage tiering30-70% on storageLow-MediumMove infrequent data to S3 IA/Glacier, GCS Nearline/Coldline
Data transfer optimization20-50% on transferMediumUse VPC endpoints, consolidate cross-AZ traffic, use CDN
Database engine optimization20-50% on databaseHighMigrate from licensed DB to open-source, use Aurora Serverless
Container packing20-40% on cluster costMediumImprove bin-packing, use Karpenter/Cluster Autoscaler effectively

Step 4: Build a Savings Plan

Prioritize recommendations by savings impact and implementation effort:

PriorityCriteriaTimeline
P0 — Quick Wins> $100/month savings, < 1 hour effort, no riskThis week
P1 — Low Hanging Fruit> $500/month savings, < 1 day effort, low riskThis sprint
P2 — Right-Sizing> $1000/month savings, requires testingNext 2-4 weeks
P3 — CommitmentsSignificant savings, requires approval and planningNext 1-2 months
P4 — ArchitectureLarge savings, significant engineering effortNext quarter

Step 5: Implement Cost Governance

ControlPurposeImplementation
Budget AlertsDetect unexpected spend increasesSet alerts at 50%, 80%, 100% of monthly budget
Tagging PolicyAttribute costs to teams/servicesRequire tags: team, service, environment, cost-center
Quota/LimitsPrevent accidental large resource creationSet account-level quotas for expensive resource types
Scheduled ScalingReduce non-production costs outside business hoursAuto-stop dev/staging instances evenings and weekends
FinOps ReviewsRegular cost review cadenceWeekly anomaly review, monthly optimization review
Cost Anomaly DetectionAutomated detection of spend spikesEnable AWS Cost Anomaly Detection or equivalent

Step 6: Measure and Report

Key FinOps Metrics:

MetricFormulaTarget
Unit CostTotal cost / business unit (per user, per request, per GB)Decreasing over time
Commitment CoverageCommitted spend / total eligible spend70-80%
Waste RatioIdentified waste / total spend< 5%
Cost per EnvironmentSpend breakdown by environmentNon-prod < 30% of total
Cost TrendMonth-over-month spend changeAligned with business growth

Output Format

## Cloud Cost Review: [Account/Project Name]

### Current Spend Summary
[Monthly spend, trend, top 5 cost drivers]

### Waste Identified
[Table of idle/unused resources with monthly cost]

### Right-Sizing Recommendations
[Table of resources to resize with current vs. recommended and savings]

### Commitment Opportunities
[RI/SP/CUD recommendations with discount and payback period]

### Architecture Optimizations
[Longer-term optimization opportunities]

### Savings Summary
| Category | Monthly Savings | Annual Savings | Effort |
|----------|----------------|---------------|--------|
| Waste elimination | $X | $X | Low |
| Right-sizing | $X | $X | Medium |
| Commitments | $X | $X | Low |
| Architecture | $X | $X | High |
| **Total** | **$X** | **$X** | |

### Implementation Roadmap
[Prioritized action items with owners and timelines]

### Governance Recommendations
[Tagging, budgets, alerts, review cadence]

Quality Checklist

  • All major resource types reviewed (compute, storage, database, network, managed services)
  • Utilization data covers at least 14 days (longer for commitment decisions)
  • Non-production environments reviewed separately from production
  • Savings estimates are conservative (use lower bound)
  • Right-sizing recommendations include a rollback plan
  • Commitment recommendations do not exceed minimum baseline usage
  • Tagging policy covers cost attribution to teams and services
  • Budget alerts are configured with appropriate thresholds
  • Recommendations include effort estimate and risk level
  • Unit economics (cost per user/request) are tracked alongside absolute costs

Edge Cases

  • Multi-Account / Organization: Review consolidated billing for cross-account RI/SP sharing. Ensure discount benefits are attributed to the correct team. Check for orphaned accounts with active resources.
  • Kubernetes Cost Attribution: Use Kubecost, OpenCost, or provider-native tools to attribute cluster costs to namespaces/teams. Container right-sizing requires pod-level metrics, not just node-level.
  • Data Transfer Costs: Often hidden and significant. Map data flows between services, regions, and to the internet. Use VPC endpoints for AWS service traffic. Consider CDN for egress-heavy workloads.
  • Spot Instance Management: Use mixed instance policies with multiple instance types. Implement graceful shutdown handling. Never run stateful or single-instance workloads on spot. Use spot for CI/CD runners, batch jobs, and horizontal scale-out tiers.
  • Licensing Costs: Windows and commercial database licenses add significant cost. Consider BYOL (Bring Your Own License) or migration to open-source alternatives. Factor license costs into right-sizing decisions.
  • Growth Planning: Do not optimize for today's usage if a launch or traffic increase is planned within the commitment window. Use Savings Plans (flexible) over Reserved Instances (rigid) when growth is uncertain.
Skills enregistrées