Sikau

AWS · Day 12 · about 40 min

Cost and pricing

Tiers, free allowances and estimating a bill before it arrives.

The bill is part of the design

In the cloud you pay for what you use, which is wonderful until something runs all weekend by mistake. Every service has a price model: Lambda bills per request and per millisecond of run time, S3 per gigabyte stored and per request, RDS per hour the database exists. Good engineers estimate the bill before they build.

Many prices are tiered pricing: the first chunk may be free, the next chunk costs a little, and the rest costs less per unit. Estimating means walking through the tiers.

Reading a price list

A price page says things like "first 10 GB free, next 40 GB at $0.02 per GB, over that $0.01 per GB". Each tier applies only to the units inside it. If you use 100 GB, you pay nothing for the first 10, 40 times 0.02 for the next 40, and 50 times 0.01 for the remaining 50.

The numbers in this lesson are made up for practice. Real prices change by region and over time, so always check the official AWS pricing pages and the AWS Pricing Calculator before you commit.

Set up a budget alert in AWS Budgets on day one. A warning at a small amount costs nothing and catches surprises early.

The rest of this lesson

  • Walking the tiersexplain
  • How much?predict
  • Cost leversmatch
  • Estimate before buildingorder
  • Estimate a billwrite code
  • Badge quizquiz
  • What you learnedrecap