Add aws-cost command for quick AWS cost overview

- Add aws-cost function that displays current AWS costs in a formatted table
- Shows costs for yesterday, last 7 days, current month, and last month
- Displays top 5 services with cost breakdown and percentages
- Includes month-over-month cost comparison
- Uses AWS Cost Explorer API for accurate cost data
- Updated README with aws-cost documentation
This commit is contained in:
Paul Frederiksen 2025-09-13 16:30:21 -07:00
commit 2ce9a1bfc7
2 changed files with 134 additions and 0 deletions

View file

@ -35,6 +35,9 @@ plugins=(... aws)
* `aws_change_access_key`: changes the AWS access key of a profile.
* `aws-cost`: displays a quick overview of AWS costs including current month spending,
cost breakdown by service, and comparison with previous periods.
* `aws_profiles`: lists the available profiles in the `$AWS_CONFIG_FILE` (default: `~/.aws/config`).
Used to provide completion for the `asp` function.