Skip to content

opensite-ai/opensite-skills / aws-billing-and-cost-management

aws-billing-and-cost-management

Verified

Analyze 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.

references/reserved-instances.md

View on GitHub
# Reserved Instances

## RI Types

| Type | Discount | Flexibility | Marketplace |
|------|----------|-------------|-------------|
| Standard | Up to 72% | Size flexibility within family (regional) | Can sell |
| Convertible | Up to 66% | Can exchange for different family/size/OS | Cannot sell |

## Payment Options
All Upfront (highest discount) > Partial Upfront > No Upfront (lowest discount).

## Break-Even Points
- 1-year RI: typically 7-10 months
- 3-year RI: typically 10-14 months

## Size Flexibility (Regional RIs)

Regional RIs (both Standard and Convertible) automatically apply across instance sizes within the same family using normalization factors. Example: 1 c5.xlarge RI covers 2 c5.large instances. AZ-scoped RIs provide capacity reservation but NO size flexibility.

## Application Order
RIs apply first, then Savings Plans cover remaining eligible usage.

## Service-Specific Considerations

**EC2:** Available for Linux, RHEL, SUSE, Windows. Regional or zonal. Size flexibility within family (except dedicated tenancy).

**RDS:** Available for MySQL, PostgreSQL, MariaDB, Oracle, SQL Server, Aurora. Size flexibility within family. Automatically applied to Multi-AZ deployments.

**ElastiCache:** Redis/Valkey and Memcached. Redis/Valkey reserved nodes support size flexibility within family. Memcached reserved nodes do not.

**OpenSearch:** Specific instance types in specific regions. No size flexibility. Cannot sell on Marketplace.

**Redshift:** Specific node types in specific regions.

## CLI Commands

```bash
# RI utilization
aws ce get-reservation-utilization \
  --time-period Start=2026-03-01,End=2026-04-01 \
  --granularity MONTHLY

# RI purchase recommendations
aws ce get-reservation-purchase-recommendation \
  --service "Amazon Elastic Compute Cloud - Compute" \
  --term-in-years ONE_YEAR \
  --payment-option NO_UPFRONT \
  --lookback-period-in-days SIXTY_DAYS

# RI coverage
aws ce get-reservation-coverage \
  --time-period Start=2026-03-01,End=2026-04-01 \
  --granularity MONTHLY
```

## Gotchas

- Standard RIs can be sold on Marketplace; Convertible cannot
- Regional RIs provide size flexibility; AZ-scoped provide capacity reservation — pick one
- DynamoDB Reserved Capacity is deprecated — use Database Savings Plans instead
- RI modifications (splitting/merging) don't change the term or payment — only the instance count and AZ
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall