Stop 03 · AWS Account Setup & ToolsTopics · 8/8

AWS Pricing Models & Pricing Calculator

Part of the AWS Roadmap

In short

AWS bills are made of small meters: hours, GB, requests and data out. Once you can read those meters and estimate them in the Pricing Calculator, cloud costs stop being scary and start being a design choice.

Most AWS services charge for what you use, such as hours of compute, GB stored or requests made, and data transfer out to the internet is usually charged too. The AWS Pricing Calculator lets you estimate a monthly bill before you build anything.

The jaadu sits in the back of an auto-rickshaw, carefully watching the fare meter tick while adding up coins on a little notepad.

Think of it like this

Auto-rickshaw meter

An auto meter charges for distance and waiting time, and night rides cost more. AWS works the same way: an EC2 meter ticks per second while the instance runs, S3 charges per GB stored each month, and sending data out to the internet has its own meter.

Watch it happen

Estimating a tiny monthly bill

EC2 hours
0
EBS GB
1
S3 GB
2
Requests
3
Data out
4

1/5Most AWS costs come from a handful of meters like these.

The big ideas

What you need to know

On-Demand

Pay by the second or hour with no commitment. Most expensive per hour, most flexible.

Savings Plans & Reserved

Commit to steady usage for one or three years and get a large discount compared with On-Demand.

Spot

Use spare EC2 capacity at a deep discount, but AWS can take it back with a two-minute warning.

Pricing Calculator

calculator.aws lets you add services, pick a Region and see an estimated monthly cost you can save and share.

See it in code

Walk through the code

bash
1# Ask the Price List API for a Linux t3.micro in Mumbai2aws pricing get-products \3  --region us-east-1 \4  --service-code AmazonEC2 \5  --filters \6    "Type=TERM_MATCH,Field=instanceType,Value=t3.micro" \7    "Type=TERM_MATCH,Field=regionCode,Value=ap-south-1" \8    "Type=TERM_MATCH,Field=operatingSystem,Value=Linux" \9    "Type=TERM_MATCH,Field=tenancy,Value=Shared" \10    "Type=TERM_MATCH,Field=preInstalledSw,Value=NA" \11    "Type=TERM_MATCH,Field=capacitystatus,Value=Used" \12  --max-items 1

1/3The pricing service endpoint lives in us-east-1 (and a few others), whatever Region you are pricing.

The Price List API returns official prices as JSON. It is served from a few Regions, so we call it in us-east-1 while asking about Mumbai.

Save yourself the pain

Common mistakes

Oops

Estimating only compute and forgetting storage, NAT gateways, public IPv4 addresses and data transfer.

Do this instead

Add every component to the Pricing Calculator. The 'small' items often add up to more than the server.

Oops

Buying a three-year commitment for a project that may change next month.

Do this instead

Start On-Demand, watch real usage for a while, then commit to the steady baseline only.

Your mission

Price a college fest website

~25 min

Quick check

Which pricing option fits a nightly batch job that can be safely restarted if interrupted?

Go deeper

  1. 1Estimate the monthly cost of one small EC2 instance and a 20 GB EBS volume in the Mumbai Region.
  2. 2Find the data transfer pricing section for EC2 and note what is free and what is charged.
  3. 3Save and share a Pricing Calculator estimate link for one of your planned projects.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge