# 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.

## 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](https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html))
- "and receive alerts when costs approach or exceed your defined threshold." ([source](https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html))
- "This page describes how to set the maximum number of instances that" ([source](https://cloud.google.com/run/docs/configuring/max-instances))
- "After you've set a budget amount, you set budget alert threshold rules that" ([source](https://cloud.google.com/billing/docs/how-to/budgets))
- "Limits define the minimum and maximum possible number of replicas per revision as your container app scales." ([source](https://learn.microsoft.com/en-us/azure/container-apps/scale-app))
- "Resources aren't affected, and your consumption isn't stopped." ([source](https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets))

- [Previous: Restrict which principals can invoke each tool endpoint](/checklist/restrict-tool-invokers/)
- [Next: Decide for each tool whether the action runs with the agent's authority or the signed-in user's](/checklist/decide-user-or-agent-authority/)

## 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](/checklist/decide-user-or-agent-authority/)
- [Run agents in their own account, project or subscription: the check, and how in AWS, Google Cloud and Azure](/checklist/dedicated-account-project-subscription/)
- [Tag every agent resource with an owner and environment, and enforce the tags: the check, and how in AWS, Google Cloud and Azure](/checklist/tag-agent-resources/)

## Sources

- docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html: https://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: https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html (read 10 Nov 2026)
- cloud.google.com/run/docs/configuring/max-instances: https://cloud.google.com/run/docs/configuring/max-instances (read 10 Nov 2026)
- cloud.google.com/billing/docs/how-to/budgets: https://cloud.google.com/billing/docs/how-to/budgets (read 10 Nov 2026)
- learn.microsoft.com/en-us/azure/container-apps/scale-app: https://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: https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://aiagentaccesscontrol.com/checklist/cap-run-and-spend/
