AI agents · OpenClaw · self-hosting · automation

Quick Answer

Secure Deployment of Autonomous AI Agents on Cloud Providers

Published:

The short answer

Deploy autonomous agents on the managed agent runtime of the cloud you already secure, and turn on its identity, gateway and policy layers — network isolation alone is not enough. As of December 1, 2026:

  • AWS Bedrock AgentCore — per-session microVM isolation, AgentCore Identity for credentials, and Cedar policies enforced at AgentCore Gateway on every tool call.
  • Google Gemini Enterprise Agent Platform — every agent gets a SPIFFE identity, Agent Gateway blocks every connection unless an IAM policy allows it, and Model Armor screens prompts and tool responses.
  • Microsoft Foundry Agent Service — Entra ID identities, Toolbox credential injection so agents never hold secrets, and Standard Setup in your own VNet.

For the network side (VPC, PrivateLink, Private Service Connect), see trusted vendors for AI agent deployment in your VPC. This page covers the controls that stop an agent misusing access it legitimately has.

The seven controls, by cloud

ControlAWSGoogle CloudMicrosoft Azure
1. Agent identityAgentCore Identity workload identityAgent Identity (SPIFFE ID, mTLS + DPoP)Entra ID agent identity
2. Default-deny tool accessAgentCore Policy (Cedar) attached to GatewayIAM Unified Access Policies; all connections blocked by defaultToolbox scoping + Azure RBAC
3. Credential handlingToken vault; outbound OAuth managed by GatewayGateway-mediated auth to registered toolsToolbox credential injection, OAuth identity passthrough
4. Injection screeningGateway input validation rulesModel Armor on prompts and tool responsesAzure AI Content Safety, Defender
5. IsolationmicroVM per session; VPC modeAgent Runtime + VPC Service ControlsHosted agents in dedicated containers; delegated subnet
6. Budget limitsPer-agent inference spend via AWS budgetsToken management policies (shared token budgets)Foundry quotas
7. AuditCloudTrail, AgentCore ObservabilityCloud Logging per gateway decisionFoundry Control Plane, Purview

Step by step

1. One identity per agent. Never run an agent on a developer’s credentials. On Google, each agent’s SPIFFE ID is authenticated end to end with mTLS and DPoP; on AWS and Azure, create a workload or Entra identity per agent so every action is attributable.

2. Route every tool call through a gateway that denies by default. On AWS, Policy in AgentCore (generally available since March 2026 in 13 regions) lets security teams write rules in natural language that convert to Cedar, AWS’s open-source policy language; the policy engine attaches to AgentCore Gateway, which intercepts agent-tool traffic and allows or denies each request. On Google, Agent Gateway checks the Agent Registry of approved tools and blocks anything without an explicit IAM grant; semantic governance policies add plain-language business rules such as “never issue a refund and close the ticket in the same run”.

3. Keep secrets out of the model. Store OAuth tokens and API keys in the platform’s vault and let the gateway inject them at call time: AgentCore Identity on AWS, Toolbox on Foundry. The agent sees a tool, never a key. More in how to secure AI agent credentials.

4. Screen what goes in and what comes back. Tool responses are untrusted input. Google’s Model Armor scans user prompts and tool responses in real time for prompt injection, sensitive data and harmful content when attached to Agent Gateway.

5. Isolate execution. AgentCore runs each session in a microVM with hardware-enforced isolation; Code Interpreter and Browser are separate sandboxes. For code-running agents outside the hyperscalers, see the best AI agent sandboxes.

6. Cap spend. A looping autonomous agent is a cost incident. Google’s token management policies enforce shared token budgets across agents; on AWS and Azure, set budgets and quotas per agent identity. Model rates are in our current API prices.

7. Log every decision and keep a human on irreversible actions. Payments, deletions, production deploys and outbound email should require approval until the agent has a track record.

What it costs

The security layers are cheap next to model tokens. AWS lists AgentCore Gateway at $0.005 per 1,000 tool calls and Runtime at $0.0895 per vCPU-hour (v1). Google bills Agent Gateway at one Agent Compute vCPU-hour ($0.085) per 15,000 calls, and semantic governance at $0.085 per 15,000 evaluations plus evaluation-model tokens. Microsoft charges nothing extra for prompt-based Foundry agents.

Picks by situation

  1. Already on AWS, regulated industry → AgentCore with Policy and VPC mode.
  2. Want the strictest default-deny out of the box → Google Agent Runtime with Agent Gateway and Model Armor.
  3. Agents act in Microsoft 365 with user permissions → Foundry Agent Service with Entra ID and a Toolbox.
  4. Multi-cloud → standardise identity and policy at your own gateway; see API gateway vendors for AI agent governance.

Last verified: December 1, 2026.

Sources