Skip to content
30 November 2026 An independent technology publication
Guide

AWS billing alerts: 9 proven ways to stop a surprise bill in 2027

Set up AWS billing alerts that fire in time. 9 proven layers, from free Budgets and anomaly detection to spend limits and budget actions, with CLI examples.

AWS billing alerts: 9 proven ways to stop a surprise bill in 2027, DevQuarry featured image

AWS billing alerts are the cheapest insurance you can buy in the cloud, because most of them cost nothing. A forgotten NAT gateway, a test GPU instance left running over a weekend or a leaked access key can turn a $5 account into a four-figure invoice before anyone notices. The fix is a few layers of alerts that each catch a different kind of mistake, set up once and left alone.

This guide covers the nine layers that work in 2027, including the per-project spend limits AWS added to new accounts in September 2026. It also covers the July 2026 billing bug that showed customers estimates in the trillions, and what that incident teaches about trusting any single alert.

AWS billing alerts: 9 proven ways to stop a surprise bill in 2027, DevQuarry featured image

The short version

  • AWS Budgets monitoring and email notifications are free, so every account should have at least one cost budget.
  • Exclude credits from your budget, or it can sit at $0 while your free credits drain.
  • Turn on Free Tier usage alerts and CloudWatch billing alerts in Billing preferences.
  • AWS Cost Anomaly Detection catches spikes that a monthly budget misses, but its default threshold is high.
  • New accounts can set a monthly spend limit that pauses a project instead of billing past it.
  • Budget actions can attach a deny policy or stop instances when spend crosses a line.
  • Alerts lag real usage by hours, so combine them with good habits on keys and idle resources.

Why do AWS bills surprise people?

AWS bills surprise people because the platform charges by usage and, for most of its history, never stopped anything when you went over a number. You pay for what runs, whether you remember starting it or not. AWS billing alerts exist to close that gap between what is running and what you think is running.

The usual causes are boring rather than dramatic:

Cause Why it is easy to miss Typical cost signal
Idle EC2 or RDS instances Test resources outlive the test Steady daily cost in EC2 or RDS
NAT gateways Charged per hour per Availability Zone plus per GB processed EC2-Other line grows every day
Public IPv4 addresses Every public IPv4 address is billed by the hour Small, constant, multiplies across VPCs
Log ingestion CloudWatch Logs charges per GB ingested Sudden jump after a debug flag goes on
Data transfer out Egress to the internet and between Regions Spikes after a release or a crawler visit
Leaked access keys Attackers launch large instances for mining Hundreds of dollars per hour in new Regions
AI model calls Token charges scale with traffic and prompt size Bedrock cost tracks request volume

A monthly invoice shows all of this at the end of the month. AWS billing alerts show it while you can still do something about it.

What happened in the July 2026 billing bug?

On 16 July 2026, a configuration change in AWS’s bill computation system introduced a unit pricing error into estimated charges. According to InfoQ’s report on the incident, customers opened Cost Explorer and saw month-to-date estimates in the billions and trillions of dollars. One account that normally spends under $5 a month showed $1.7 billion.

AWS said invoices were never affected. Its own alarms detected the anomaly but did not stop the estimate pipeline, and AWS eventually paused estimated bills and switched off budget and anomaly alerts platform-wide while it fixed the problem.

Two lessons came out of it:

  1. AWS billing alerts depend on the same estimate pipeline as Cost Explorer, so a single source can be wrong.
  2. An alert is only useful if someone knows what normal looks like. Teams with a baseline spotted the bug in minutes; others deleted workloads in a panic.

How do AWS billing alerts work?

AWS billing alerts work by comparing estimated charges against a threshold you choose, then sending a notification by email, Amazon SNS or a chat channel. The estimates come from AWS’s billing data, which refreshes a few times a day, so every alert lags real usage by some hours.

AWS billing alerts layers: Free Tier alerts, AWS Budgets, Cost Anomaly Detection, CloudWatch billing alarm, budget actions and spend limits, ordered from warning to hard stop

There are two families of tools:

Tool family What it does Stops spending?
Notifications (Budgets, anomaly detection, CloudWatch billing alarm, Free Tier alerts) Emails or messages you when a line is crossed No
Controls (budget actions, spend limits, service control policies) Changes permissions or pauses work Partly

Most people only need the first family. Anyone running an account where a mistake could cost real money should add at least one control.

What do AWS billing alerts cost?

Almost nothing. The AWS Budgets pricing page lists budget monitoring and notifications as free. The first two action-enabled budgets are also free each month, and each extra action-enabled budget costs $0.10 per day. Emailed Budgets Reports cost $0.01 each.

Cost Anomaly Detection has no charge of its own. A CloudWatch billing alarm counts toward your CloudWatch alarm allowance, which the free tier covers for most small accounts.

Way 1: Turn on the alerts in Billing preferences

The quickest AWS billing alerts to set up are the two checkboxes in Billing preferences. Open the Billing and Cost Management console, choose Billing preferences, then edit Alert preferences.

AWS billing alerts in Billing preferences: Receive AWS Free Tier alerts and Receive CloudWatch billing alerts checkboxes with an extra email address

Two settings matter for AWS billing alerts:

  • The Receive AWS Free Tier alerts setting sends an email when a service passes 85% of its free monthly allowance. By default it goes to the root user’s email, so add a team address you actually read.
  • The Receive CloudWatch billing alerts setting publishes the EstimatedCharges metric to CloudWatch, which you need for Way 5.

These alerts cost nothing and take two minutes. They also help on newer accounts that run on credits, which we cover in detail in our AWS Free Tier guide.

Way 2: Create a monthly cost budget

A monthly cost budget is the backbone of AWS billing alerts. It compares actual and forecasted spend for the month against an amount you set and emails you at the percentages you choose.

To create one in the console:

  1. Open Billing and Cost Management, then Budgets, then Create budget.
  2. Choose Use a template and pick Monthly cost budget.
  3. Enter a budget name and amount, for example $50.
  4. Add the email addresses that should receive alerts.
  5. Create the budget.
AWS billing alerts with AWS Budgets: Create budget page showing the zero spend budget and monthly cost budget templates

The template creates three alerts: actual spend at 85% and 100%, and forecasted spend at 100%. You can edit them later.

Should I use a zero spend budget?

Use a zero spend budget only if the account should never spend a cent, such as a sandbox that lives entirely on always-free services. It alerts on the first $0.01 of charges. For anything with real workloads, a monthly cost budget with a sensible amount causes less alert fatigue.

Exclude credits from your budget

This is the most common mistake with AWS budgets on new accounts. By default, credits count as negative cost, so a budget can show $0 spend while your credits quietly drain. AWS’s Builder Center guide to the $0 account recommends unchecking credits in the budget’s advanced options (the IncludeCredit setting) so the budget tracks real usage.

Way 3: Set alert thresholds that give you time to react

Good AWS billing alerts fire early enough to act on. A single alert at 100% tells you the money is already spent. A ladder of thresholds tells you a trend is forming.

AWS billing alerts thresholds in AWS Budgets: actual cost at 50% and 80%, forecasted cost at 100%, with email and Amazon SNS recipients
Threshold Trigger type What it tells you
50% Actual You are on pace, or a spike happened early in the month
80% Actual Time to check Cost Explorer for the cause
100% Forecasted AWS predicts you will exceed the budget this month
120% Actual Something is wrong and needs action today

The forecasted alert is the most useful one in practice. It fires days before the actual 100% alert, based on your spending pattern so far.

Keep in mind that the data behind AWS billing alerts in AWS Budgets refreshes up to three times a day. A runaway resource can spend a lot between refreshes, which is why fast-moving risks need the controls later in this guide.

Way 4: Turn on cost anomaly detection

AWS Cost Anomaly Detection uses machine learning to learn your normal spending per service, account or tag and alerts on unusual jumps. It catches the spike a monthly budget misses, such as a $40 day in an account that normally spends $3.

AWS billing alerts with AWS Cost Anomaly Detection: monitor for AWS services and alert subscription with an absolute threshold of $10, sent daily

To set it up:

  1. Open Cost Anomaly Detection in the Billing and Cost Management console.
  2. Create a monitor. AWS services is the right choice for most single accounts.
  3. Create an alert subscription with your email or an SNS topic.
  4. Set the threshold. Choose an absolute amount for small accounts.
  5. Choose Individual alerts for fast notice or a daily summary for less noise.

Change the default threshold

Many accounts now get a default monitor automatically. The Builder Center guide notes that its default alert fires only on anomalies above $100 that are also more than 40% above expected spend. That is too late for a hobby account. Lower it to an amount that would actually hurt, such as $10.

Way 5: Add a CloudWatch billing alarm

A CloudWatch billing alarm watches the EstimatedCharges metric and fires when month-to-date charges cross a number. It is older than AWS Budgets but still useful as a second, independent path for AWS billing alerts, and it can trigger anything CloudWatch can, such as an SNS topic that pages someone.

Two rules apply:

  • The billing metric only exists in the US East (N. Virginia) Region, us-east-1, whatever Region you work in.
  • You must turn on Receive CloudWatch billing alerts first (Way 1).

A minimal alarm from the AWS CLI looks like this:

aws cloudwatch put-metric-alarm \
  --region us-east-1 \
  --alarm-name "monthly-bill-over-50" \
  --namespace "AWS/Billing" \
  --metric-name EstimatedCharges \
  --dimensions Name=Currency,Value=USD \
  --statistic Maximum --period 21600 --evaluation-periods 1 \
  --threshold 50 --comparison-operator GreaterThanThreshold \
  --alarm-actions arn:aws:sns:us-east-1:123456789012:billing-alerts

Because the alarm reads the same estimate data as Budgets, it will not save you from an estimate bug like July’s. It does save you from a misconfigured budget, which is the more common failure.

Way 6: Set a spend limit on new accounts

A spend limit is the first true cap on AWS. With the new sign-up experience AWS announced on 16 September 2026, accounts are organised into projects, and when you upgrade to a paid plan you can set a monthly spend limit per project. If a project reaches its limit, AWS pauses it for the rest of the month instead of continuing to bill.

What we know about the AWS spend limit so far:

Detail What AWS and early users report
Who gets it New accounts on the new sign-up experience, rolling out in stages
Scope One limit per project, monthly
Starting point Help Net Security reports limits start at $20; the Builder Center guide says the minimum is $20 or AWS’s estimate of your spend, whichever is higher
At the limit The project is paused until the owner raises the limit
Early warning Some accounts can apply a managed policy about 7 days before the limit to stop new resources launching

Help Net Security’s walkthrough notes the rollout covers new customers only, and it does not yet say what happens to a public endpoint when a project pauses. Treat it as a strong safety net for side projects and learning accounts. For production, a pause can be its own outage, so pair it with the alerts above rather than relying on it alone.

Older accounts created through the standard sign-up do not have this limit. They need budget actions instead.

Way 7: Use budget actions to enforce a cap

Budget actions turn AWS billing alerts into controls. When a budget threshold is crossed, AWS can run an action automatically or after you approve it.

Action type What it does Good for
Apply IAM policy Attaches a deny policy to chosen users, groups or roles Stopping developers launching new resources
Apply service control policy Attaches an SCP to an account or OU in AWS Organizations Freezing a whole sandbox account
Stop EC2 or RDS instances Stops the instances you select Shutting down a known expensive test fleet

Budget actions have limits worth knowing:

  • An IAM deny policy blocks new resources but leaves running ones billing.
  • Stopped EC2 instances still pay for their EBS volumes and Elastic IPs.
  • Budgets data refreshes up to three times a day, so spend can pass the threshold before the action runs.

Still, a deny policy at 100% of a sandbox budget stops the most expensive class of mistake: someone launching more and bigger resources after the money has run out.

Way 8: Script your AWS billing alerts with the CLI

If you manage more than one account, define AWS billing alerts as code so every new account gets them. The AWS CLI create-budget command takes the budget and its notifications in one call.

AWS billing alerts from the AWS CLI: aws budgets create-budget with a monthly cost budget of $50 and describe-budgets output showing actual spend

Save the budget definition as budget.json:

{
  "BudgetName": "monthly-50",
  "BudgetLimit": { "Amount": "50", "Unit": "USD" },
  "TimeUnit": "MONTHLY",
  "BudgetType": "COST",
  "CostTypes": { "IncludeCredit": false, "IncludeRefund": false }
}

Then create it with an alert at 80% of actual spend:

aws budgets create-budget \
  --account-id 123456789012 \
  --budget file://budget.json \
  --notifications-with-subscribers '[{"Notification":{"NotificationType":"ACTUAL","ComparisonOperator":"GREATER_THAN","Threshold":80,"ThresholdType":"PERCENTAGE"},"Subscribers":[{"SubscriptionType":"EMAIL","Address":"alerts@example.com"}]}]'

The same definition works in CloudFormation as AWS::Budgets::Budget and in Terraform as aws_budgets_budget, which is the better home for it in a team.

Send AWS billing alerts to chat

Email gets ignored. Point your budgets and anomaly alerts at an SNS topic, then connect that topic to Slack or Microsoft Teams with Amazon Q Developer in chat applications (formerly AWS Chatbot). A cost alert in the team channel gets looked at the same day.

Way 9: Build habits that make alerts rare

The best AWS billing alerts are the ones that never fire. A few habits remove most of the causes in the table at the top:

  • Tag every resource with an owner and project, then activate those tags as cost allocation tags so Cost Explorer can group by them.
  • Delete test stacks when the test is over, or schedule them to stop overnight.
  • Never create long-lived access keys for the root user, and turn on MFA everywhere.
  • Review Cost Explorer for five minutes every Monday, grouped by service.
  • Check for unattached EBS volumes, idle load balancers and NAT gateways in Regions you no longer use.
  • Keep log levels at INFO in production and set retention on every log group.

If your team runs on more than one cloud, the same discipline applies to Azure budgets and Google Cloud budget alerts. Our AWS vs Azure vs Google Cloud comparison covers how their free tiers and cost tools differ.

What should I do if I already got a surprise bill?

Act quickly, because AWS billing alerts only warn you and most of the damage in a surprise bill comes from resources that are still running. Follow this order:

AWS surprise bill response flow: find the service in Cost Explorer, stop the resource, rotate keys if compromised, open a billing support case, then add AWS billing alerts
  1. Find the cause. Open Cost Explorer, set the range to the last 7 days with daily granularity and group by service, then by Region.
  2. Stop the spend. Stop or delete the resource. Check every Region, since attackers often use Regions you never touch.
  3. Secure the account. If you did not launch it, rotate all access keys, check IAM for new users and turn on MFA for the root user.
  4. Open a billing case. Contact AWS Support from the console. Billing support is free on every plan, and AWS has a long record of reviewing genuine mistakes and compromised accounts, especially for first-time cases.
  5. Add the missing alerts. Work through Ways 1 to 7 so the next surprise is caught in hours.

If the number looks impossible, check the AWS Health Dashboard before panicking. The July 2026 incident showed that estimates can be wrong, and invoices are what you actually pay.

Which AWS billing alerts should I set up first?

Start with the free layers and add controls by risk. This table maps account types to a sensible minimum:

Account type Minimum AWS billing alerts Add a control?
Learning or Free plan account Free Tier alerts, zero spend budget with credits excluded Spend limit if available
Side project Monthly cost budget, anomaly detection at $10 Spend limit or IAM deny action
Startup production account Budget per environment, anomaly detection per service, CloudWatch billing alarm to on-call Budget action on sandbox accounts only
Multi-account organisation Budgets as code for every account, anomaly monitors per linked account SCP budget actions on sandbox OUs

The order in this guide is roughly the order to do them in. Ways 1 to 4 take about fifteen minutes in total.

Frequently asked questions

Are AWS billing alerts free?

Mostly. AWS Budgets monitoring and notifications are free, the first two action-enabled budgets are free, and Cost Anomaly Detection has no separate charge. Extra action-enabled budgets cost $0.10 per day each.

Can AWS stop charging me when I hit a limit?

On new accounts with the September 2026 sign-up experience, yes: a project spend limit pauses the project for the rest of the month. Older accounts have no automatic cap, but budget actions can block new resources or stop selected instances.

How fast do AWS billing alerts arrive?

Not instantly. Billing data refreshes a few times a day, so alerts lag real usage by hours. That is why anomaly detection and forecast-based alerts help, and why stopping resources yourself is still the fastest control.

Why does my AWS budget show $0 when I am using services?

Your budget is probably counting credits as negative cost. Edit the budget, open the advanced options and exclude credits so it tracks real usage.

Do I need a CloudWatch billing alarm if I have AWS Budgets?

Not strictly, but it gives you a second independent path and can trigger any CloudWatch action. Remember that it only works in us-east-1 and needs billing alerts turned on first.

What is the difference between AWS Budgets and Cost Anomaly Detection?

AWS Budgets compares spending against a fixed amount you choose. Cost Anomaly Detection learns your normal pattern and alerts when spending jumps unusually, even if you are still under budget.

Will AWS refund an accidental bill?

AWS reviews refund requests case by case through a billing support case. Explaining what happened, showing you stopped the resources and adding alerts afterwards all help.

Did the July 2026 billing bug charge customers?

No. AWS said the inflated numbers were only in estimated charges and that invoices were not affected. Budget and anomaly alerts were paused while AWS fixed it.

Set them up today

AWS billing alerts take about fifteen minutes to set up and can save you a month’s salary. Turn on the Billing preferences alerts, create one cost budget with credits excluded, lower the anomaly detection threshold and add a spend limit or budget action where a mistake would hurt. If you are attending or following AWS re:Invent 2026, watch for more cost controls: the September spend limits suggest AWS is finally treating hard caps as a feature.

About the author Aradhya Chaudhary

Data Scientist | Freelancer | Speaker & Writer skilled in programming, development and building AI/ML backed systems.

More from Aradhya
Keep reading

More in Cloud & DevOps

All of Cloud & DevOps →