diff --git a/ce.rst b/ce.rst new file mode 100644 index 0000000..1d021e6 --- /dev/null +++ b/ce.rst @@ -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 \ No newline at end of file diff --git a/index.rst b/index.rst index dc19ac2..9fc5f59 100644 --- a/index.rst +++ b/index.rst @@ -44,6 +44,7 @@ like the following. So you no longer need to pass ``--profile`` to acm amplify apigw + ce cloudfront cloudwatch cognito