kamranahmedse/aws-cost-cli

Add columns to display the difference (delta) for Yesterday's costs in both percentage and absolute values.

george-c29 opened this issue · 0 comments

Feature Request

Is your feature request related to a problem? Please describe.
I'd like to begin by saying thank you for this tool! We use it daily to get a cost report in our Teams channel. We often find ourselves looking at just the summary (Especially the Yesterday field since it tracks daily cost) and notice increases or decreases often, which leads us to trying to navigate the detailed cost report in order to track which service caused the increase/decrease in costs.

Describe the solution you'd like
It would be extremely helpful if we could automatically compute & display a delta (difference) on the daily cost, especially since most aws resources are billed per hour, so daily cost is constant. For 2 consecutive daily executions of the report, it would look like:

...
Yesterday: $743

...
Yesterday: $669 (-10%)

and then in the per-service breakdown we could do the same (including a percentage delta):
Service Last Month This Month Last 7 Days Yesterday
Amazon OpenSearch Service $8071.72 $5599.53 $445.28 $62.68 (down/up +/- X%)

Something like this would help us react much quicker to cost changes.

Describe alternatives you've considered
For now the only alternative I can think of is using a script to fetch the last message from our teams chat and doing a diff between today's and yesterday's output and manipulating today's message, which is very ugly.

Are you willing to resolve this issue by submitting a Pull Request?

  • No, I don't have the time and I wouldn't even know how to start.

Thank you!