Cap how much the agent can run and spend
Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.
Check 21 of 30: Cap how much the agent can run and spend. A looping or hijacked agent can start thousands of runs and a large bill before anyone notices. Limits on concurrency and budget alerts shrink the damage window.
The whole checklist ยท The map
Why it matters
A looping or hijacked agent can start thousands of runs and a large bill before anyone notices. Limits on concurrency and budget alerts shrink the damage window.
How, in each cloud
- AWS
- Set Lambda reserved concurrency and AWS Budgets alerts.
- Google Cloud
- Set a maximum number of Cloud Run instances and Cloud Billing budget alerts.
- Azure
- Set maximum replicas on the container app and Cost Management budgets; Microsoft notes that budget thresholds trigger notifications but do not stop consumption.
What the documentation says
- "This sets both the maximum and minimum number of concurrent instances allocated to your Event Function." (source)
- "and receive alerts when costs approach or exceed your defined threshold." (source)
- "This page describes how to set the maximum number of instances that" (source)
- "After you've set a budget amount, you set budget alert threshold rules that" (source)
- "Limits define the minimum and maximum possible number of replicas per revision as your container app scales." (source)
- "Resources aren't affected, and your consumption isn't stopped." (source)
- Previous: Restrict which principals can invoke each tool endpoint
- Next: Decide for each tool whether the action runs with the agent's authority or the signed-in user's
Related pages
- Decide for each tool whether the action runs with the agent's authority or the signed-in user's: the check, and how in AWS, Google Cloud and Azure
- Run agents in their own account, project or subscription: the check, and how in AWS, Google Cloud and Azure
- Tag every agent resource with an owner and environment, and enforce the tags: the check, and how in AWS, Google Cloud and Azure
Sources
- docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html, read 10 Nov 2026
- docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html, read 10 Nov 2026
- cloud.google.com/run/docs/configuring/max-instances, read 10 Nov 2026
- cloud.google.com/billing/docs/how-to/budgets, read 10 Nov 2026
- learn.microsoft.com/en-us/azure/container-apps/scale-app, read 10 Nov 2026
- learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-creat, read 10 Nov 2026
Last reviewed 16 Nov 2026.