2 Answers
- Newest
- Most votes
- Most comments
1
Your use case might be met using AWS Budgets? For more details see https://aws.amazon.com/aws-cost-management/aws-budgets/.
answered 2 years ago
1
This graph would be approximately what you need, where you are plotting 1000 less the running total of your estimate spend
.
{
"metrics": [
[ { "expression": "1000 - RUNNING_SUM(monthly)", "label": "Expression1", "id": "budget" } ],
[ "AWS/Billing", "EstimatedCharges", "Currency", "USD", { "id": "monthly", "visible": false } ]
],
"view": "timeSeries",
"stacked": false,
"region": "us-east-1",
"stat": "Maximum",
"period": 2592000
}
However, it is difficult to get exact value of spend in a month. To get exact values you would be better off querying AWS Cost Explorer. CloudWatch Dashboards has a Custom Widget feature that comes with a simple AWS Cost Explorer report. It would be relatively easy to adapt the code in that to display what you need.
answered 2 years ago
Relevant content
- asked 2 years ago
- Accepted Answerasked 2 months ago
- AWS OFFICIALUpdated 3 months ago
- How can I monitor daily EstimatedCharges and trigger a CloudWatch alarm based on my usage threshold?AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago
Okay, I will test this out to see if it works. I suppose Budget Renewal Type = "Expiring budget" and Budgeting method = "Fixed"?