Can you set a hard spending limit on AWS?
Not on a whole account, for most accounts. AWS Budgets sends alerts when costs approach or pass a threshold, and budget actions can apply an IAM policy or a service control policy, or target specific EC2 or RDS instances, either automatically or after your approval. Budgets data updates up to three times a day, typically 8 to 12 hours apart, so an action can fire long after the spend started.
AWS also has spend limits in its new AWS experience. They work per project, need a Paid Plan, cover up to 10 projects and pause a project's resources when it reaches its limit. AWS says it is releasing that experience to a limited number of customers. The full picture is in AWS spending limit.
| Control | What it does | The gap |
|---|---|---|
| AWS Budgets | Alerts on actual or forecast spend at a threshold | Updates up to three times a day and never stops anything |
| Budget actions | Applies an IAM policy or SCP, or targets EC2 and RDS instances | Runs on the same Budgets data, 8 to 12 hours between updates |
| Cost Anomaly Detection | Flags unusual spend about three times a day | Uses Cost Explorer data, which AWS says has a delay of up to 24 hours |
| Spend limits | Pauses a project's resources at its limit | Per project, Paid Plan only, up to 10 projects, limited rollout |
| Costbrake | Spike alerts in minutes on Lambda, Bedrock, NAT gateway and GPU spend, plus 4 brakes | An admin confirms every brake; storage keeps billing |
How fresh is the AWS data Costbrake sees?
Cost Explorer is the billed truth, and it is slow: AWS says some current-period data can be updated later than 24 hours. Costbrake reads it at most once every 4 hours and treats a day as final after about 2 days. More on why in AWS Cost Explorer delay.
The fast lane is CloudWatch. With the cloudwatch:GetMetricData permission, Costbrake estimates Lambda, Bedrock, NAT gateway and GPU instance spend from usage metrics about 5 minutes after the fact, in up to 8 regions where you have spend, at us-east-1 list prices. That lane is what lets Pro and Team check every 5 minutes and every minute during a spike.
Without the CloudWatch permission, Costbrake falls back to Cost Explorer alone, and every plan then checks every 4 hours. Spend in other services, such as RDS or S3, only shows up once Cost Explorer has it.
What the AWS key can and can't do
The read key belongs to an IAM user with three actions: ce:GetCostAndUsage, cloudwatch:GetMetricData and cloudwatch:ListMetrics. It can't change anything. Costbrake refuses root user keys. Your AI agent can create the user with the AWS CLI and hand over the key without printing it, as described in agent setup, or you paste the access key ID and secret yourself.
Brakes need a second IAM user, costbrake-killswitch, with its own policy. You only create it if you want brakes. Cost Explorer charges $0.01 per API request; Costbrake makes about 210 a month, roughly $2.
How an AWS brake works
Costbrake never brakes on its own. On Pro and Team, an admin turns the killswitch on for the connection, picks a target, types the connection name and clicks Brake now. The target list puts GPU instances first and covers the 6 regions with the most spend in the last 7 days.
Each brake records the setting it changed, so Undo puts back exactly what was there. Undo still works after a downgrade to Free. For a runaway function, see Lambda runaway costs; for model spend, Bedrock cost control.
- A stopped EC2 instance still bills for its EBS volumes and Elastic IP addresses.
- Spot instances, instance-store-backed instances and instances in Auto Scaling groups, EC2 Fleet, EMR or Karpenter are not listed.
- There is no brake for RDS, S3 or NAT gateways; for those, Costbrake alerts and you act in the AWS console.
What triggers an AWS alert
A spike alert fires when an hour costs more than 3 times your 7-day hourly average and at least $5 more, once Costbrake has 24 hours of history. Budget alerts fire at 50, 80 and 100 percent by default, and Pro adds forecast alerts. Free sends email; Pro adds Slack, Discord and webhooks; Team adds PagerDuty. Compare plans on the pricing page, and see AWS billing alerts for the native options.
Questions and answers
Does Costbrake stop AWS spend automatically?
No. Costbrake alerts you, and an admin on Pro or Team decides whether to brake. A brake needs the killswitch turned on for the connection, the connection name typed in, and a click on Brake now. Every brake has an Undo.
How quickly does Costbrake notice an AWS spike?
For Lambda, Bedrock, NAT gateways and GPU instances, the CloudWatch estimates are about 5 minutes behind, and Pro and Team check every 5 minutes, then every minute for 2 hours after a spike. Other AWS services show up when Cost Explorer has them, which AWS says can take more than 24 hours.
Is the Costbrake AWS key read-only?
Yes. The read key's IAM user can call ce:GetCostAndUsage, cloudwatch:GetMetricData and cloudwatch:ListMetrics and nothing else. Brakes use a separate IAM user, costbrake-killswitch, that you only create if you want brakes.
What does connecting AWS to Costbrake cost in AWS fees?
AWS charges $0.01 per Cost Explorer API request. Costbrake reads Cost Explorer at most once every 4 hours plus a daily ledger read, about 210 requests or roughly $2 a month.
Does stopping an EC2 instance stop all of its charges?
No. AWS stops charging for the instance's usage, but its EBS volumes and any Elastic IP addresses keep billing. Data on instance-store volumes is lost, and the instance gets a new public IPv4 address when it starts again unless it has an Elastic IP.
Sources
- AWS: Exploring your data using Cost Explorer
- AWS: Cost Explorer pricing
- AWS: Managing your costs with AWS Budgets
- AWS: Configuring budget actions
- AWS: Detecting unusual spend with Cost Anomaly Detection
- AWS: Creating a spend limit
- AWS: How Amazon EC2 instance stop and start works
- AWS: Configuring reserved concurrency for Lambda
- AWS: UpdateAccessKey API reference
- AWS: IAM policy evaluation logic
Updated