opensite-ai/opensite-skills / aws-billing-and-cost-management
aws-billing-and-cost-management
VerifiedAnalyze AWS costs, find savings, manage budgets, evaluate Savings Plans and Reserved Instances, right-size EC2/Lambda/RDS/EBS with Compute Optimizer, look up service pricing, query CUR with Athena, detect cost anomalies, scope costs to billing views, and monitor Free Tier usage. Triggers on: AWS bill, cost analysis, reduce spend, savings plan, reserved instance, right-size, budget alert, cost optimization, pricing, free tier, cost anomaly, CUR, cost audit, billing view, billing view ARN.
| File | Kind | Size |
|---|---|---|
| .aws-skill-metadata | other | 18 B |
| SKILL.md | skill md | 8.9 KB |
| references/budgets.md | markdown | 2.4 KB |
| references/cost-audit.md | markdown | 3.2 KB |
| references/cost-explorer.md | markdown | 7.3 KB |
| references/cost-optimization-hub.md | markdown | 7.2 KB |
| references/cur-athena.md | markdown | 7.0 KB |
| references/deterministic-calculations.md | markdown | 2.5 KB |
| references/ebs-optimization.md | markdown | 2.7 KB |
| references/ec2-rightsizing.md | markdown | 3.3 KB |
| references/free-tier.md | markdown | 1.6 KB |
| references/lambda-optimization.md | markdown | 2.2 KB |
| references/pricing-lookup.md | markdown | 3.8 KB |
| references/rds-optimization.md | markdown | 1.8 KB |
| references/reserved-instances.md | markdown | 2.3 KB |
| references/savings-plans.md | markdown | 3.3 KB |
| references/service-optimization.md | markdown | 3.0 KB |
references/savings-plans.md
View on GitHub# Savings Plans
> **Pricing note:** All prices shown are approximate as of early 2026 and may change. Always verify current pricing via the Price List API before reporting to users.
## Plan Types
| Type | Discount | Flexibility | Covers |
|------|----------|-------------|--------|
| Compute SP | Up to 66% | Any family, size, region, OS | EC2, Fargate, Lambda |
| EC2 Instance SP | Up to 72% | Any size, OS within family+region | EC2 only |
| Database SP | Up to 35% | Any engine, family, size, region | Aurora, RDS, DynamoDB, ElastiCache, DocumentDB, Neptune, Keyspaces, Timestream, DMS, OpenSearch |
| SageMaker SP | Up to 64% | Any family, size, region | SageMaker |
Default recommendation: **Compute SP** for most users. The 6% discount gap vs EC2 Instance SP is not worth the inflexibility.
Default payment: **No Upfront** for first-time buyers to minimize risk.
## How Recommendations Are Calculated
The recommendation engine analyzes usage over a lookback period (7, 30, or 60 days), considering every usage hour including nights and weekends. It selects a commitment ($/hr) that maximizes savings while maintaining high utilization.
**Utilization** = committed dollars used ÷ committed dollars purchased. Target >95%.
**Savings** = On-Demand cost − (SP cost + remaining On-Demand cost).
Savings compare to On-Demand prices only. The `estimatedMonthlyCost` and `estimatedMonthlySavings` in Cost Optimization Hub are monthly figures. The `EstimatedOnDemandCostWithCurrentCommitment` in additional details covers the lookback period — do NOT conflate lookback-period costs with monthly costs.
## SP vs Reserved Instances
| Feature | Savings Plans | Reserved Instances |
|---------|--------------|-------------------|
| Flexibility | High (Compute SP covers EC2+Fargate+Lambda) | Low (service-specific) |
| Capacity reservation | No | Yes (AZ-scoped RI — Standard or Convertible) |
| Marketplace resale | No | Yes (Standard RI only) |
| AWS recommendation | Preferred | Legacy, still supported |
SPs apply AFTER RI discounts. SPs do NOT apply to Spot usage.
Use RIs only when: capacity reservation needed in specific AZ, want to sell on Marketplace, or very stable single-instance-type workload.
## Gotchas
- **7-day return window (conditional):** SPs with hourly commitment ≤$100, purchased in the past 7 days AND in the same calendar month, can be returned for a full refund. Usage covered by the returned plan is re-rated to On-Demand. Outside this window, commitment is binding for the full term.
- Compute SP does NOT cover RDS — use Database SP
- SP doesn't provide capacity reservation — use ODCR separately
- EKS control plane ($0.10/hr) is NOT covered by any SP
- DynamoDB Reserved Capacity is deprecated in favor of Database SP
- Start with Cost Explorer recommendations — they analyze actual usage patterns
## CLI Commands
```bash
# Get SP purchase recommendation
aws ce get-savings-plans-purchase-recommendation \
--savings-plans-type COMPUTE_SP \
--term-in-years ONE_YEAR \
--payment-option NO_UPFRONT \
--lookback-period-in-days SIXTY_DAYS
# Check utilization
aws ce get-savings-plans-utilization \
--time-period Start=2026-03-01,End=2026-04-01 \
--granularity MONTHLY
# Check coverage
aws ce get-savings-plans-coverage \
--time-period Start=2026-03-01,End=2026-04-01 \
--granularity MONTHLY
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |