Aws/cost Report
Format AWS cost estimates into readable reports with breakdowns and recommendations.
Features
- Formatted markdown tables for EC2, RDS, and spec-based estimates
- Cost breakdowns by tag (owner, project)
- Actionable recommendations for cost optimization
- JSON output for programmatic analysis
Usage
The report runs automatically after @webframp/aws/cost-estimate methods.
It can also be run standalone:
# Run after method execution (automatic)
swamp model method run cost-est estimate_from_spec --input-file spec.json
# Run standalone on existing model
swamp model report cost-est --jsonReport Output
- Resource tables with per-item costs
- Tag-based cost allocation (by owner, project)
- Recommendations for:
- Right-sizing expensive resources
- Windows to Linux migration opportunities
- Multi-AZ considerations for RDS
- Tagging gaps
Labels
Filter reports using labels:
swamp model method run <model> <method> --report-label cost2026.07.18.1
Changed: Version bump only, no code changes.
2026.06.26.1
Added: Unit test coverage (cost_report_test.ts) with 17 tests covering skip
behavior, EC2/RDS table rendering, data handle filtering, method-specific
recommendations, header content, and JSON output structure.
Format AWS cost estimates into readable reports with breakdowns and recommendations
2026.06.26.1
Added: Unit test coverage (cost_report_test.ts) with 17 tests covering skip
behavior, EC2/RDS table rendering, data handle filtering, method-specific
recommendations, header content, and JSON output structure.
updated platforms
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned