Sub topic 3
Estimates, services, and configurations
An estimate in the AWS Pricing Calculator has three levels: the estimate, the services in it, and the configuration of each service. This chapter explains how those levels relate, what each one stores, and how they combine into the totals you see. I assume you know the core AWS services (EC2, S3, RDS), you know what a Region is, and you can read a monthly cost breakdown. The previous chapters covered what the calculator is and the pricing dimensions behind it. The next chapter covers the individual fields of a service configuration.
The three levels of an estimate
Everything you build in the calculator sits in a hierarchy.
- Estimate. The top-level container. It has a name and produces the totals you share or export.
- Service. One AWS service you added, such as Amazon EC2 or Amazon S3. The calculator shows a configuration form specific to that service.
- Configuration. One filled-in set of inputs for a service. It holds a Region, a description, and the service-specific choices and usage figures. Each configuration produces one line item with its own cost.
The terminology is easy to blur, so keep these distinctions in mind. "Service" names the product. "Configuration" is one instance of that product's inputs. You can add the same service more than once, each time with different inputs.
What a configuration costs
A configuration is a bundle of inputs. The calculator multiplies those inputs by the list prices for the chosen Region and returns a cost. Two kinds of values go into it:
- Selections describe what you run: the instance type, the operating system, the storage class, the database engine, and the purchase option.
- Quantities describe how much and for how long: the number of instances, hours per month, gigabytes stored, and requests per month.
The same selections with different quantities give a different cost, and the same quantities with different selections do too. That is why one service often appears twice. A web tier that runs all month and a nightly batch tier that runs two hours a day have different quantities. Putting them in one configuration would hide the difference, and putting them in two keeps each assumption visible.
A useful rule is to give each distinct usage pattern its own configuration, and to give every configuration a description that says what it is for.
The three totals
The estimate summary reports three figures:
| Total | Meaning | Where it comes from |
|---|---|---|
| Upfront cost | One-time payments due at the start | Purchase options that charge in advance, such as an All Upfront or Partial Upfront commitment |
| Monthly cost | Recurring cost for one month | The sum of every configuration's monthly cost |
| Total 12 months cost | The cost over a year | Upfront cost plus twelve times the monthly cost |
If you use only On-Demand pricing, the upfront cost is zero and the 12-month total is the monthly cost times twelve. Upfront cost matters once you compare commitment options, which a later chapter covers. For now, remember that the 12-month figure is a projection of your inputs repeated for a year. It does not model growth, price changes, or usage that varies from month to month.
Modeling the roll-up in code
You can reproduce the roll-up in a few lines of Python. This is a hand model of the arithmetic, useful for sanity-checking a number the calculator gives you. The rates are illustrative placeholders, not current AWS prices.
from dataclasses import dataclass, field
HOURS_PER_MONTH = 730 # average hours in a month, a common basis for monthly estimates
@dataclass
class LineItem:
service: str
description: str
region: str
monthly: float
upfront: float = 0.0
@dataclass
class Estimate:
name: str
items: list = field(default_factory=list)
def add(self, item):
self.items.append(item)
def upfront_total(self):
return sum(i.upfront for i in self.items)
def monthly_total(self):
return sum(i.monthly for i in self.items)
def twelve_month_total(self):
return self.upfront_total() + 12 * self.monthly_total()
def compute_monthly(hourly_rate, count, utilization=1.0):
return hourly_rate * HOURS_PER_MONTH * utilization * count
est = Estimate("Web app, production")
est.add(LineItem("EC2", "web servers", "us-east-1", compute_monthly(0.02, 3)))
est.add(LineItem("RDS", "primary database", "us-east-1", compute_monthly(0.05, 1), upfront=100.0))
print(f"Upfront: {est.upfront_total():.2f}")
print(f"Monthly: {est.monthly_total():.2f}")
print(f"12 months: {est.twelve_month_total():.2f}")Running it prints an upfront cost of 100.00, a monthly cost of 80.30, and a 12-month total of 1063.60. The monthly figure is 0.02 × 730 × 3 = 43.80 for the web servers plus 0.05 × 730 = 36.50 for the database. The 12-month total is 100 + 12 × 80.30.
The model also shows why line items stay independent. Each configuration contributes its own numbers, and the estimate only adds them. A mistake in one configuration therefore does not spread to the others, and you can find it by checking that one line.
Building an estimate in the console
The workflow in the calculator follows the hierarchy:
- Start a new estimate and give it a name that identifies the workload and its purpose, such as "Orders API, production, steady state".
- Search for a service and choose to configure it.
- Fill in the configuration: a description, the Region, the service-specific selections, and the usage quantities.
- Add the configuration to the estimate. The summary updates immediately.
- Repeat for every service, and for every distinct usage pattern within a service.
- Review the summary and the line items before you save or share.
You can edit or remove a configuration after you add it, so the first pass does not have to be perfect. A practical approach is to add the services you are sure of first, then add the supporting ones: storage, load balancers, monitoring, and data transfer. Estimates that understate cost usually do so because supporting services are missing, not because the main service was priced wrongly.
Region is part of each configuration
Region is set per configuration, not per estimate. One estimate can therefore contain configurations in several Regions, which is how you model a primary Region plus a disaster-recovery Region. The same instance type usually has a different list price in a different Region, so a Region mismatch is a common source of error.
Two consequences follow:
- If you copy a configuration to build a similar one, check the Region of the copy. It may not be the one you intended.
- When you compare an estimate to a bill, look at the Region of each line item first. A cost that appears in the bill under a Region you did not estimate usually means the workload is deployed somewhere else, or that traffic is crossing Regions.
Common mistakes
Most estimate errors come from structure, not from arithmetic.
- One configuration for mixed usage. Servers that run 24 hours a day and servers that run for a few hours do not share a utilization figure. Split them.
- Vague descriptions. "EC2 1" tells a reviewer nothing. "Web servers, 3 × t3.medium, always on" lets them check your assumptions.
- Missing supporting services. A compute-only estimate leaves out storage volumes, load balancing, logging, and data transfer.
- Region drift. Configurations in the wrong Region quietly change the price.
- Treating the 12-month total as a forecast. It repeats one month's inputs twelve times. If your usage grows, the real total will differ.
- No record of assumptions. An estimate that does not say what traffic or data volume it assumed cannot be reviewed later.
Keeping estimates reviewable
An estimate is a document that other people will read, so structure it for them. Name the estimate for the workload and scenario. Describe each configuration by role and by the key quantity ("3 × t3.medium, 730 hours"). When an estimate grows past a handful of line items, you will want to organize it into groups, which the later chapter on groups covers. A clear structure now makes that step easy.
Exercise
An estimate has two EC2 configurations in us-east-1. The first is 4 instances that run all month at a placeholder rate of 0.10 per hour. The second is 2 instances that run for half the month at a rate of 0.20 per hour. There is also an S3 configuration at 15.00 per month, and no upfront payments. Using 730 hours per month, what are the monthly total and the 12-month total, and why is it better to use two EC2 configurations than one?
Show answer
First EC2 configuration: 0.10 × 730 × 4 = 292.00. Second: 0.20 × 730 × 0.5 × 2 = 146.00. Adding S3 at 15.00 gives a monthly total of 453.00. With no upfront cost, the 12-month total is 12 × 453.00 = 5,436.00. Two configurations are better because the instance groups differ in rate and utilization. Keeping them separate makes each assumption visible and lets a reviewer check or change one without affecting the other.
Exercise
A reviewer compares your estimate to a bill and finds a cost in eu-west-1, but every configuration in your estimate is in us-east-1. Name two possible explanations and one check for each.
Show answer
One explanation is that the workload is deployed in eu-west-1 and the estimate used the wrong Region. Check the Region of the deployed resources in the console. Another explanation is that traffic crosses Regions, for example replication or cross-Region data transfer. Check the usage type of the billed line item and the replication settings.