-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f76330e
commit d09b238
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters