Live
Zero‑Shot ML from Pandas Using the New BigQuery AccessorLive enterprise data access via Gemini Data Cloud connectorsGitLab 19.5 GA of MCP server expands AI agent integration for DevOps pipelinesServerless Model Context Protocol Gateway on Amazon ECS FargateRemote Claude Code Execution on Amazon Bedrock AgentCore with Built-in Data ControlsClosing the Open Source Remediation Gap with Lightwell LessonsAgent Simulation Beta Enables Engineers to Validate Prompt, Model, and Tool Changes Pre‑DeployAWS Continuum GA Brings Code Vulnerability Automation to Two RegionsZero‑Shot ML from Pandas Using the New BigQuery AccessorLive enterprise data access via Gemini Data Cloud connectorsGitLab 19.5 GA of MCP server expands AI agent integration for DevOps pipelinesServerless Model Context Protocol Gateway on Amazon ECS FargateRemote Claude Code Execution on Amazon Bedrock AgentCore with Built-in Data ControlsClosing the Open Source Remediation Gap with Lightwell LessonsAgent Simulation Beta Enables Engineers to Validate Prompt, Model, and Tool Changes Pre‑DeployAWS Continuum GA Brings Code Vulnerability Automation to Two Regions
AWS

Remote Claude Code Execution on Amazon Bedrock AgentCore with Built-in Data Controls

AI SummaryPowered by AI

Claude Code, which traditionally runs on a developer’s laptop, can now be executed as a remote agent inside Amazon Bedrock AgentCore, with each coding request handled in an isolated runtime session. This shift lets engineers offload work to AWS, retain Bedrock’s data‑protection guarantees, and integrate results directly as GitHub pull requests, while introducing new operational and security considerations.

Claude Code is moving from a local laptop process to a managed remote agent that runs inside Amazon Bedrock AgentCore. Each request is executed in its own isolated AgentCore runtime session, and the outcome is returned as a GitHub pull request. Engineers gain the ability to close their laptops while work proceeds, but they must also account for the new service boundaries, cost model, and security posture.

Why Move Claude Code to AgentCore?

Running the model in AWS removes the need for a continuously powered workstation and provides a consistent, auditable environment. The remote pattern turns a coding task into a hand‑off: the developer submits a request, the agent works in a disposable environment, and the result arrives as a pull request that can be reviewed like any other change. This approach also aligns with existing Bedrock benefits such as billing through the AWS account, CloudTrail audit logging, and geographic inference profiles for data residency.

Architecture Overview

The request path consists of several AWS services that keep the data flow within the customer’s account:

  • Claude Code or a web console (served by CloudFront with WAF) sends a task to API Gateway.
  • A Lambda handler screens the prompt using Bedrock Guardrails, records metadata in DynamoDB, and places the job on an SQS queue.
  • A dispatcher Lambda reads the queue and launches the repository’s AgentCore runtime inside private subnets of a VPC that span two Availability Zones.
  • The runtime calls Amazon Bedrock with temporary IAM credentials; the inference request inherits Bedrock’s data‑protection guarantees.
  • When the job finishes, the agent creates a GitHub pull request that the originating user can review.

Security and Compliance Implications

Bedrock’s design provides three core assurances that remain in effect when the workload runs remotely:

  • Data protection: prompts and completions are not used to train models, and providers cannot access the content or service logs. The service is covered by SOC, ISO, FedRAMP Moderate, HIPAA eligibility, and GDPR compliance.
  • Access control: the agent uses temporary IAM credentials and can be federated through identity providers such as Microsoft Entra ID or Okta. PrivateLink can keep traffic to Bedrock inside the VPC.
  • Operator isolation: the Mantle inference engine enforces zero operator access (ZOA), and customers can enable zero data retention (ZDR) to prevent durable storage of request or response data.

Additional safeguards include the Guardrails screening step and the network isolation provided by private subnets and security groups.

Operational Considerations

Adopting the remote agent changes how teams plan and monitor coding work:

  • Task suitability: the pattern works well for scoped features, bug fixes, and test suites that have defined setup and test commands. It is less appropriate for untrusted repositories or open‑ended work that may exceed the three‑attempt limit.
  • Cost visibility: each isolated session incurs compute and Bedrock inference charges, making cost prediction harder than a single local machine.
  • Observability: CloudTrail captures API calls, while DynamoDB logs provide a record of submitted prompts. Teams should monitor Lambda execution metrics and SQS queue depth to detect bottlenecks.
  • Environment management: the runtime spins up in private subnets across two AZs, so VPC configuration, security‑group rules, and subnet sizing must be provisioned ahead of time.

Related CloudNinjas coverage: AWS.

What This Means For Practitioners

  • Leverage the remote agent to free developer workstations for higher‑value tasks, but validate that the codebase is trusted and that the repository defines clear build/test commands.
  • Ensure IAM policies, PrivateLink endpoints, and security‑group rules are in place before enabling the workflow.
  • Enable Bedrock Guardrails and, where required, zero data retention to keep the data‑protection model intact.
  • Instrument Lambda, SQS, and DynamoDB metrics to maintain visibility into queue health and cost drivers.
  • Review pull‑request results as part of the normal code‑review process; treat the agent as an automated contributor rather than a replacement for human oversight.
Originally published atAWS Machine Learning Blog