Skip to content
AI Agent Access Control

Cap how much the agent can run and spend

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)

Sources

  1. docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html, read 10 Nov 2026
  2. docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html, read 10 Nov 2026
  3. cloud.google.com/run/docs/configuring/max-instances, read 10 Nov 2026
  4. cloud.google.com/billing/docs/how-to/budgets, read 10 Nov 2026
  5. learn.microsoft.com/en-us/azure/container-apps/scale-app, read 10 Nov 2026
  6. learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-creat, read 10 Nov 2026

Last reviewed 16 Nov 2026.