Skip to content

Commit

Permalink
ce: add cost explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
mdminhazulhaque committed Jan 5, 2024
1 parent f76330e commit d09b238
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ce.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Cost Explorer
=============

Get Cost by Month
-----------------

.. code:: bash
aws ce get-cost-and-usage --granularity MONTHLY --metrics BlendedCost \
--time-period Start=2023-10-01,End=2023-12-31 | \
jq '.ResultsByTime[]|.TimePeriod.Start+" "+.Total.BlendedCost.Amount'
.. code:: ini
2023-10-01 1000.000000
2023-11-01 2000.000000
2023-12-01 3000.000000
1 change: 1 addition & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ like the following. So you no longer need to pass ``--profile`` to
acm
amplify
apigw
ce
cloudfront
cloudwatch
cognito
Expand Down

0 comments on commit d09b238

Please sign in to comment.