Skip to content

Lesson 7 of 9 · 20m

Cost Control Is an Engineering Feedback Loop

Pricing dimensions, tags, budgets, lifecycle rules, and the practical routine that prevents surprise bills.

Cloud cost control fails when finance owns the bill and engineering owns the resources and nobody owns the feedback loop. AWS pricing is mostly dimensional: instance-hours, GB stored, GB transferred, requests, provisioned throughput. You control cost by changing one of those dimensions or changing the architecture that creates them. Dashboards are useful only when they lead to those decisions.

Know what dimension you are buying

EC2: instance type x hours + EBS GB + snapshots + data transfer
S3: GB-month + requests + replication + retrieval from cold tiers
RDS: instance hours + storage + I/O/provisioned IOPS + backups
NAT: hourly charge + GB processed

The expensive item is frequently not the obvious one. A small fleet of cheap instances can push terabytes through a NAT gateway, or a cold S3 bucket can accumulate millions of tiny objects whose request and minimum-storage charges matter.

Tag before you analyze

Cost allocation tags answer “who owns this?” and “what system does it belong to?” Standardize early:

Environment=prod|staging|dev
Service=checkout
Owner=payments-team
CostCenter=4102

Tags do not fix shared infrastructure perfectly, but untagged estates turn every cost conversation into archaeology. Enforce them with Infrastructure as Code, SCP-adjacent controls, or deployment validation — not a wiki request.

Budgets are alarms, not enforcement

aws budgets create-budget   --account-id 123456789012   --budget file://monthly-prod-budget.json   --notifications-with-subscribers file://budget-subscribers.json

Create budgets at the level where someone can act: organization, production account, and sometimes a service boundary. An alert that lands in a dead mailbox is observability theater.

High-value boring moves

  • Right-size obvious waste using utilization data, then re-check after two weeks.
  • Stop non-production instances outside working hours when the workload allows it.
  • Add S3 lifecycle rules for logs, incomplete multipart uploads, and old versions.
  • Prefer VPC endpoints or direct service access when NAT data processing dominates.
  • Commit to Savings Plans or Reserved Instances only after usage is stable enough to predict.

Field notes

  • The Cost and Usage Report is the source of truth for serious analysis; Cost Explorer is the quick exploratory interface.
  • Data transfer pricing is asymmetric and easy to miss in diagrams. Cross-AZ and internet egress both deserve attention.
  • “Turn it off” is a valid availability decision only when someone has agreed the service may be unavailable.
  • Cost anomalies often reveal security or correctness bugs first: crypto mining, retry storms, accidental public endpoints.

Was this lesson helpful?

Sign in to rate