Skip to main content
This guide shows how to use AWS Cost Explorer to track, analyze, and forecast costs generated by machine learning (ML) demos and development environments. Cost Explorer helps you identify which services, resources, or tags are driving spend so you can optimize usage, set budgets, and avoid surprises. Start from the AWS Management Console and open Cost Explorer. You can also link Cost Explorer to AWS Budgets to create alerts for thresholds and anomalies. For example, here’s a snapshot of the AWS Management Console showing cost and usage overviews:
This image is a screenshot of the AWS Management Console, showing sections for AWS Health, cost and usage, and introductory resources for getting started with AWS.
Key capabilities you’ll use in Cost Explorer:
  • View actual (incurred) spend and modelled forecasted spend
  • Drill down by service, usage type, account, tag, and region
  • Create custom reports and set alerts with AWS Budgets
In many ML accounts the largest costs come from interactive runtimes, training instances, and endpoints. In this account, most spend is coming from Amazon SageMaker (Studio and related services).
Be careful with SageMaker resources: interactive runtimes, endpoints, and training instances can keep incurring charges if left running. Regularly stop or delete unused resources and verify you have no orphaned volumes, endpoints, or long-running training jobs.
Cloud resources created for demos are often forgotten. Regularly audit and terminate unused resources to prevent unexpected bills.
The image shows an AWS Billing and Cost Management dashboard with a cost breakdown graph and recommended actions related to billing alerts and cost anomalies.
How to analyze costs with Cost Explorer
  1. Open Cost Explorer and select a date range (last month, month-to-date, custom).
  2. Choose granularity: monthly, daily, or hourly (hourly helps identify short-lived spikes).
  3. Group by dimension(s): Service, Usage Type, Region, Linked Account, or Tags.
  4. Apply filters such as specific AWS Accounts, services (e.g., Amazon SageMaker), or tags (project/demo name).
In this example the report is grouped by Service so we can see which AWS services are contributing the most to monthly spend. SageMaker appears as the top service, followed by AWS Glue and others.
The image shows an AWS Cost Explorer report displaying a bar graph of service costs for June 2026, with details of various AWS services and their costs in a popup box. The sidebar includes navigation options and cost management features.
Dig deeper by expanding groups, switching visualization types (bar, area, line), and filtering by usage type or tags. Cost Explorer also produces forecasts based on historical trends and shows prediction intervals (e.g., an 80% prediction interval).
The image shows a screenshot of the AWS Cost Explorer interface, displaying a new cost and usage report with various options like report parameters and date range settings.
Useful Cost Explorer controls (quick reference) Actionable checklist for ML teams
  • Tag resources: apply project, environment, or owner tags to SageMaker notebooks, endpoints, training jobs, and datasets.
  • Schedule and automate shutdowns: stop interactive runtimes and non-production endpoints when idle.
  • Review Cost Explorer weekly: identify anomalies or growth trends early.
  • Create budgets and alerts using AWS Budgets to trigger notifications before thresholds are breached.
  • Clean up orphaned storage or snapshots that can accumulate costs.
Tip: Tag SageMaker resources (notebooks, endpoints, training jobs) with project or demo identifiers so Cost Explorer can group and attribute costs accurately by project, team, or environment.
References and further reading Use Cost Explorer proactively to keep ML spending visible, predictable, and searchable by project or owner.

Watch Video