AWS spend limits for AI agents are not a single fixed cap but a combination of service quotas, AWS Budgets alerts, and a 90-day deletion rule that applies to certain AI-related resources. The 90-day rule means that specific AWS AI services, such as Amazon Q Developer (in some tiers) and certain SageMaker resources, automatically delete your data or configurations after 90 days of inactivity, which can affect your costs and usage. This article explains how spend limits work, what the 90-day deletion rule means for your AI agent workloads, and how to avoid unexpected charges or data loss.
Background: Why AWS Has Spend Limits and Deletion Rules
AWS operates on a pay-as-you-go model, but to prevent runaway costs and protect customer data, it enforces two distinct mechanisms:
- Spend limits – These are not hard dollar caps by default. Instead, AWS uses service quotas (e.g., maximum number of concurrent invocations) and AWS Budgets to alert you when spending exceeds a threshold. You can set a budget that triggers an action, but AWS does not automatically stop services unless you configure that.
- Deletion rules – Some services have data retention policies. For AI agents, the most relevant is the 90-day deletion rule for Amazon Q Developer (formerly CodeWhisperer) and certain SageMaker Studio resources. After 90 days of inactivity, AWS may delete your custom models, notebooks, or associated data to free up resources and reduce storage costs.
Understanding both is critical because a deletion can break your AI agent’s workflow, and a spend limit can stop it unexpectedly.
How AWS Spend Limits Work for AI Agents
When you run AI agents on AWS (e.g., using Lambda, SageMaker, or Bedrock), costs accrue from compute time, data storage, and API calls. To control these, you use:
- AWS Budgets – Create a budget with a dollar amount. When actual or forecasted spend exceeds it, you get an email alert. You can also set an action to stop EC2 instances or delete certain resources, but this is not automatic by default.
- Service Quotas – These are limits on resources, such as the number of concurrent Lambda executions or the size of a SageMaker notebook instance. If you hit a quota, your AI agent may fail with a throttling error, which indirectly limits spend.
- AWS Cost Anomaly Detection – Uses machine learning to detect unusual spending patterns and alerts you.
For AI agents specifically, you might set a budget of $100/month. If your agent uses Bedrock to call Claude or Titan models, each prompt and completion costs money. A budget alert will notify you, but it won’t stop the calls unless you configure a budget action to, say, disable the agent’s IAM role.
What the 90-Day Deletion Rule Means
The 90-day deletion rule is a data retention policy. It applies to resources that are not actively used for 90 consecutive days. For example:
- Amazon Q Developer – If you have a custom chatbot or agent built on Amazon Q, and no one interacts with it for 90 days, AWS may delete the underlying data (e.g., your enterprise knowledge base index). This is to comply with data minimization principles.
- SageMaker Studio – If you create a notebook instance or a model package and don’t use it for 90 days, it may be deleted. This includes your trained models, which could be costly to retrain.
This rule does not apply to all services. S3 buckets, for instance, do not have a 90-day deletion policy. But for AI-specific services, it’s a real risk.
How to Choose the Right Spend Limit for Your AI Agent
Choosing a spend limit involves balancing cost with performance. Here’s a practical approach:
- Estimate your usage – Calculate the average number of requests per day, the average tokens per request, and the cost per token for the model you use (e.g., Bedrock charges per 1,000 tokens). Multiply to get a daily cost, then multiply by 30 for a monthly estimate.
- Set a budget 20% above your estimate – This gives headroom for spikes while still catching runaway costs.
- Configure budget actions – For example, if you exceed the budget, an action can stop your EC2 instances or disable a Lambda function. This is the only way to enforce a hard limit.
- Monitor with CloudWatch – Set alarms on metrics like Invocations or TokenCount to get real-time alerts.
Common Problems and How to Avoid Them
Two frequent issues arise:
- Unexpected charges – You set a budget but forgot to configure an action, so costs continue. Always pair a budget with an action.
- Data loss from 90-day deletion – You don’t realize your SageMaker model was deleted until you try to invoke it. To avoid this, set up a lifecycle configuration that periodically touches the resource (e.g., a scheduled Lambda that restarts the notebook) or export your model artifacts to S3.
A common misconception is that the 90-day rule applies to all AWS resources. It does not. It’s specific to services that store your data in a managed environment, like Amazon Q or SageMaker Studio. S3, DynamoDB, and EBS do not have this rule.
Costs and Safety: What You Need to Know
Costs for AI agents vary widely. For example, using a foundation model via Bedrock might cost $0.01 per 1,000 input tokens, while a custom SageMaker endpoint costs $0.50 per hour. To keep costs safe:
- Use serverless options like Lambda with Bedrock to avoid idle costs.
- Set a hard limit using AWS Budgets with an EC2 or Lambda action.
- Monitor your usage with Cost Explorer to see which AI service is driving spend.
For safety, never rely on a budget alert alone. Always configure an automated action to stop resources if the budget is exceeded. Also, back up critical AI models to S3 with versioning enabled to protect against the 90-day deletion.
Alternatives to AWS for AI Agents
If the 90-day deletion rule or spend limits are too restrictive, consider alternatives:
- Google Cloud Vertex AI – Has similar quotas but different retention policies. You can set custom retention for models.
- Azure AI – Offers a pay-as-you-go model with no automatic 90-day deletion for most resources.
- Self-hosted on your own hardware – Full control but requires managing infrastructure.
Each has trade-offs, but if data retention is critical, read the fine print on data lifecycle policies.
Frequently Asked Questions
Can I set a hard dollar limit on AWS to prevent charges?
No, AWS does not offer a native “hard stop” at a dollar amount. You must use AWS Budgets with an action (like stopping an EC2 instance or disabling a Lambda function) to effectively cap spending. Without an action, you only get alerts.
Does the 90-day deletion rule apply to all AWS services?
No, it applies to specific AI and ML services like Amazon Q Developer and SageMaker Studio resources. Core storage services like S3 do not have a 90-day deletion policy. Always check the service’s documentation for data retention.
How do I know if my AI agent’s data is about to be deleted?
AWS sends a notification to your email and the Personal Health Dashboard before deletion. You can also check the service’s console for a “Last used” timestamp. If it’s been 80+ days, take action to refresh the resource.
What happens if my SageMaker model is deleted after 90 days?
You lose the model artifacts and any associated metadata. If you have a backup in S3, you can redeploy it. If not, you must retrain the model, which incurs new costs. Always export your models to S3.
Can I extend the 90-day period?
Yes, by using the resource before the 90-day window ends. For example, invoke your Amazon Q agent or restart your SageMaker notebook. This resets the inactivity timer. You can also use a lifecycle configuration to automate this.
Are there any free tiers for AI agents on AWS?
Yes, AWS offers a free tier for some AI services, like Amazon Q Developer (limited requests) and SageMaker (2 hours of notebook usage per month). However, these free tiers are subject to the same 90-day deletion rule if you don’t use them.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Delete Picture Kik? How to Remove Photos
- What Happens to X Replies, DMs, and Followers After Deletion?
- Data Breaches That Shook the World
- Disable Google Assistant: Turn It Off on Android & Home
- Resin vs FDM Printers for Miniatures: Detail, Durability, Cost
- Are Networked Implants Safe? What If One Fails?