true Account account_id `aws-billing-monthly-accounts` | `aws-accountid-to-name` | rename LinkedAccountId as account_id 0
Estimated Cost - Month to Date `aws-cloudwatch-billing($accountId$, $currency$)` | stats sum(Sum) as sum by _time LinkedAccountId metric_dimensions | `aws-cloudwatch-dimension-rex("ServiceName", "Service")` | eval day=strftime(_time, "%Y/%m/%d") | dedup day LinkedAccountId Service sortby -_time | `aws-accountid-to-name` |timechart span=1d sum(sum) by LinkedAccountId | addtotals | search Total!="" @mon now estimated_billing?form.billingAccountId=$accountId$ Cost by Service `aws-billing-monthly-item( (LinkedAccountId="$accountId$"),$currency$, $newmonthspl$)` | stats count sum(TotalCost) as TotalCost by LinkedAccountId ProductName BillingPeriodEndDate InvoiceID | eventstats sum(count) as count by InvoiceID | eval TotalCost=round(TotalCost, 2) | `aws-accountid-to-name` | stats sum(TotalCost) as TotalCost by ProductName | eval TotalCost=round(TotalCost,2) | rename TotalCost as "Total Cost" ProductName as Service 0 monthly_billing?form.billingAccountId=$accountId$ Month-over-month Cost | accum cost as "Accumulated Cost" | rename cost as Cost | fieldformat Cost=tostring(Cost,"commas") | fieldformat "Accumulated Cost"=tostring('Accumulated Cost',"commas") | eval Month = strftime(_time, "%Y-%m") | table Month Cost "Accumulated Cost" budget_planner?form.billingAccountId=$accountId$
Total Cost by Product Name and Operation | tstats `aws-data-model-acceleration` sum(detailed_billing.BlendedCost) as Cost FROM datamodel=Detailed_Billing where $monthSpl$ (detailed_billing.LinkedAccountId=$accountId$) by detailed_billing.ProductName detailed_billing.Operation | rename detailed_billing.ProductName as "Product Name", detailed_billing.Operation as Operation | sort -Cost | fieldformat Cost=tostring(round(Cost, 2),"commas") | eventstats sum(Cost) as total | fields - total 0 detailed_billing?form.billingAccountId=$accountId$&form.totalcost.groupby=Operation&form.totalcost.groupby=ProductName