diff --git a/zk/AWS_CLI.md b/zk/AWS_CLI.md index c54a154..66dc9b6 100644 --- a/zk/AWS_CLI.md +++ b/zk/AWS_CLI.md @@ -38,3 +38,12 @@ aws cloudformation delete-stack --stack-name --region ``` `region` is optional especially if only deployed to one region + +## Billing ("Cost explorer") + +### Usage for month + +``` + aws ce get-cost-and-usage --time-period Start=$(date +%Y-%m-01),End=$(date -d @$(( $(date +%s) + 86400 )) +%Y-%m-%d) --granularity MONTHLY --metrics "UnblendedCost" "UsageQuantity + +```