RousselTMLEARNING

Cloud computing

Controlling your AWS costs: pricing models, budgets and optimization

Understand and optimize the AWS bill: cost drivers (compute, storage, data transfer), Cost Explorer, Budgets, cost allocation tags, Savings Plans, Spot instances, right-sizing and FinOps practices.

1. Where the bill comes from #

The three major items.

Cost drivers #

  • Compute: instance type and duration, Lambda (requests and duration), containers.
  • Storage: volume, class, requests, forgotten snapshots.
  • Data transfer: egress to the Internet, between AZs and between regions, NAT Gateway (processing per GB).
Common mistake: NAT Gateways, unattached EBS volumes and IP addresses, and old snapshots are frequent sources of wasted spending.

2. Measuring and alerting #

Cost Explorer, Budgets, tags.

Tools #

ToolUsage
Cost ExplorerAnalysis by service, account, tag; forecasts
AWS BudgetsAlerts on actual and forecast cost or usage
Cost allocation tagsAttribute costs to teams and projects (projet, environnement)
Cost Anomaly DetectionAutomatic detection of drifts
Compute Optimizer, Trusted AdvisorRight-sizing and savings recommendations
aws ce get-cost-and-usage --time-period Start=2026-10-01,End=2026-10-28 --granularity MONTHLY \
  --metrics UnblendedCost --group-by Type=DIMENSION,Key=SERVICE
aws budgets create-budget --account-id 123456789012 --budget file://budget.json --notifications-with-subscribers file://alertes.json

3. Optimizing #

The effective levers.

Levers #

Savings levers
Commitment discounts only apply to the steady baseline: right-size before committing.
  1. Delete what is not used (orphaned resources, forgotten environments).
  2. Right-size based on measured usage.
  3. Stop staging at night and on weekends.
  4. Commit the steady baseline (Savings Plans) and put interruption-tolerant processing on Spot.
  5. Choose Graviton and suitable storage classes.
Good practice: Set up a monthly cost review per team: visibility changes behavior more than any tool.

Related articles

Observability on AWS: CloudWatch, X-Ray, Application Signals, ADOT, Managed Prometheus and Grafana

A complete overview of observability on AWS: CloudWatch components (metrics, logs, alarms, Application Signal…

Understanding AWS: global infrastructure, accounts, tools and pricing

The essential basics for getting started with Amazon Web Services: regions, availability zones and points of …

IAM: identities, roles and policies on AWS

Secure access to AWS with IAM: users, groups, roles and JSON policies, permission evaluation, MFA, IAM Identi…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!