cd /news/ai-agents/aws-a2a-demo-langchain-orchestrator-… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-168455] src=explainx.ai β†— pub= topic=ai-agents verified=true sentiment=↑ positive

AWS A2A Demo: LangChain Orchestrator, Strands on AgentCore, OAuth Across Accounts

AWS on November 12, 2026 published a deployable Agent-to-Agent (A2A) reference architecture in which a LangChain enterprise orchestrator running on Amazon ECS Fargate calls a Strands compliance agent on Amazon Bedrock AgentCore in a separate AWS account, with neither team importing the other's SDK. The sample uses Agent Cards fetched from /.well-known/agent-card.json for discovery, A2A JSON-RPC message/send over HTTPS with pinned agent URLs, and dual Cognito pools for OAuth in both directions, including SaaS-agent callbacks to an enterprise context agent. AWS positions the pattern as an answer to framework lock-in for agent SaaS vendors and regulated enterprises, noting A2A is now a Linux Foundation project; the GitHub notebooks cover onboarding, SaaS deploy and enterprise deploy in roughly 28 minutes.

by read8 min views1 publishedNov 12, 2026
AWS A2A Demo: LangChain Orchestrator, Strands on AgentCore, OAuth Across Accounts
Image: Explainx (auto-discovered)

On November 12, 2026, AWS published a deployable A2A reference architecture where a LangChain enterprise orchestrator on Amazon ECS talks to a Strands compliance agent on Amazon Bedrock AgentCore in a separate AWS account β€” using the Agent-to-Agent protocol without either team importing the other's SDK.

If you sell an agent SaaS or run agents that must call partner-built skills, this is AWS's answer to framework lock-in: discover capabilities through Agent Cards, authenticate with OAuth, and keep tool internals private while still composing workflows.

TL;DR #

| Piece | AWS sample (Nov 12, 2026) | 
|---|---|

| Enterprise entry | API Gateway HTTPS to LangChain orchestrator (Claude Sonnet 4.6) onECS Fargate | | Enterprise context | Second LangChain agent (Nova Lite) exposing account metadata over A2A | | SaaS agent | Strands compliance scanner onAgentCore with synthetic Config-style findings | | Discovery | Fetch Agent Cards at startup; LLM picks skills as LangChain tools | | Cross-boundary wire | A2A JSON-RPCmessage/send over HTTPS with pinned agent URLs | | Auth | Dual Cognito pools ; callback uses partner API Gateway with SaaS-issued tokens | | Bidirectional | SaaS agent callbacks to enterprise context agent before scanning | | Repo | GitHub notebooks: onboarding request, SaaS deploy, enterprise deploy (~28 minutes) |

Why A2A on AWS now #

AWS notes A2A is now a Linux Foundation project with industry supporters. Without a standard, every ISV writes custom HTTPS glue per customer framework β€” the same integration swamp that MCP reduced for tools, but at the agent boundary.

Our A2A versus MCP explainer separates layers: MCP wires one agent to databases and APIs; A2A wires agents to agents where neither should see the other's prompts or tool lists.

AWS's earlier Part 4 interoperability post showed two Strands agents on A2A. November 12 adds cross-framework proof (LangChain plus Strands), cross-account trust, and OAuth in both directions β€” the pattern regulated enterprises ask for when a compliance vendor sits outside the VPC.

AWS A2A multi-agent delegation with a hub routing tasks to partner agents across accounts

Architecture walkthrough #

The post diagrams three agents in two accounts:

Enterprise account

  1. Enterprise Orchestrator β€” user questions enter throughAPI Gateway , forwarded via VPC link and internal NLB to ECS. At startup it downloads the SaaSAgent Card from/.well-known/agent-card.json and registersone LangChain tool per skill .
  2. Enterprise Context Agent β€” servespolicy metadata (data classification, escalation contacts). The SaaS agent reaches it only through apartner API endpoint registered at onboarding.

SaaS account

  1. Compliance SaaS Agent β€” Strands@tool functions simulateAWS Config / Security Hub style findings. TheAgent Card advertises one curated skill , not internal tool names β€” so customer models seeproduct capabilities , not implementation.

Request path (simplified)

  • User obtains Cognito token, asks a compliance question.
  • Orchestrator model decides to invoke the external skill.
  • Orchestrator fetches enterprise pool token from Secrets Manager, sendsA2A message to AgentCore URL pinned at discovery.
  • SaaS agent callbacks to context agent withSaaS pool token for production account lists and policies.
  • Results return upstream; orchestrator summarizes for leadership.

Private subnets, no public IPs on enterprise agents, and fail-closed token fetch (no empty bearer) match patterns in Agent Registry governance.

Interoperability: LangChain without Strands #

The post's proof point is explicit: orchestrator code uses httpx and JSON-RPC, not Strands SDK. If the ISV rewrote its agent in another A2A framework but kept the card and wire format, enterprise code stays stable.

That mirrors why we track Agent Registry discovery separately from runtime auth: contracts live at the protocol layer, not the Python import layer.

Snippet concept from AWS (abridged):

  • Build payload method: message/send with text parts.
  • POST to pinnedagent_url from card discovery β€” never trust redirect URLs from messages.
  • On 401 , refresh OAuth token once and retry.

OAuth bearer tokens crossing account boundaries in the AWS A2A reference architecture

Bidirectional callback security #

One-way demos break when the callee needs caller-only data. AWS's SaaS agent:

  1. Verifies the callback URL registered at onboarding.
  2. Fetches the enterprise context Agent Card anonymously.
  3. Obtains SaaS Cognito token.
  4. Calls enterprise partner API.

Failures collapse to a single model-facing string β€” "Enterprise context unavailable" β€” while details log on the SaaS side. That is how you avoid leaking stack traces into customer-facing agent transcripts.

Compare to Bedrock AgentCore Gateway patterns where one hop returns cited answers; A2A here is multi-hop peer negotiation with separate audit trails per account.

MCP inside, A2A outside #

AWS states production SaaS agents might use MCP internally to reach Config APIs while exposing A2A externally. Builders should not conflate the two URLs:

Layer Audience Contract
MCP server Owning agent's runtime tools/list , schemas
A2A Agent Card External orchestrators Skills, auth schemes, endpoints

If you already run MCP gateways on AgentCore, think of A2A as the customer-facing flange β€” especially when customers standardize on LangChain, Strands, or future Linux Foundation adapters.

Deploy and cost notes #

Prerequisites include two accounts, Anthropic Claude Sonnet 4.6 enabled in Bedrock (plus Nova Lite in enterprise account), and Jupyter with AWS CLI profiles. Notebook 3 deploy takes about 20 minutes; cleanup sections tear down VPC, Fargate, and AgentCore resources.

AWS warns about Bedrock, AgentCore, Fargate, and VPC charges β€” run cleanup after labs. For teams comparing cloud agent hosts, pair this sample with UAEF evaluation framework thinking: measure cross-org latency and token use before production SLAs.

What to try this week #

  1. Clone AWS's linked GitHub repo and run notebook 1 onboarding JSON exchange β€” practicepublic-only handoffs (issuer URLs, scopes, endpoints).
  2. Diff your existing MCP OpenAPI specs againstAgent Card skills β€” decide which capabilities arecustomer-facing .
  3. Map Cognito pools toAgentCore Identity patterns you may already use forMCP OAuth .
  4. If you are an ISV, publish one curated skill first; keep scanning tools private until card versioning is stable.

Notebook deployment sequence (from AWS) #

AWS orders three Jupyter notebooks:

Step Account Approximate time Output artifact
1 Enterprise ~3 minutes onboarding-request.json (public URLs, scopes)
2 SaaS provider ~5 minutes onboarding-response.json
3 Enterprise ~20 minutes Agents live + end-to-end test

Only public values cross organizational email β€” no shared secrets. That matches how regulated banks onboard vendors: metadata first, credentials later via each side's secret store.

Prerequisites worth repeating: two accounts in us-east-1, us-east-2, or us-west-2, Anthropic Claude Sonnet 4.6 enabled (first-time Anthropic form per account), enterprise account also needs Amazon Nova Lite for the context agent.

Security decisions embedded in the sample #

  • Pinned agent URLs after card discovery β€” mitigatesopen-redirect style attacks if a malicious card sneaks into onboarding.
  • Separate Cognito pools β€” enterprise users never receive SaaS pool tokens and vice versa.
  • Partner API for callbacks β€” SaaS cannot hit arbitrary intranet hosts; only registered callback hostnames.
  • Synthetic compliance data in demo β€” production would wireConfig/Security Hub/GuardDuty readers behind MCP internally while still exposingone A2A skill externally.

Compare to prompt injection social engineering themes: more integration surface means more identity binding work β€” A2A adds peers, not fewer auth checks.

When to choose A2A versus MCP-only #

Pattern Pick A2A Pick MCP only
External vendor agent Yes Rarely β€” you still need HTTP glue
Internal tools in one VPC Optional Often simpler
Customer brings LangChain, you run Strands Yes Forces SDK adapters per customer

| Fine-grained KB row ACLs | Use gateway interceptor pattern on MCP | A2A does not replace ACL injection |

Observability gaps to plan #

AWS's post focuses on wiring, not trace UX. In production, log:

  • OAuth token refresh failures (orchestrator 401 retry path).
  • Callback latency β€” bidirectional flows double network hops.
  • Skill name chosen by LLM β€” detect routing drift after prompt edits.

Pair with Agent DLC if compliance questions require release gates per external skill.

Cost modeling notes #

Charges accrue across Fargate tasks, Bedrock tokens (Sonnet 4.6 for two agents, Nova Lite for context), AgentCore runtime, API Gateway, and cross-account data transfer. Demo cleanup sections are mandatory β€” idle NAT gateways and public ALBs dominate lab bills.

For multi-tenant ISVs, per-customer Agent Cards may mean per-customer OAuth clients; account for Cognito client limits and rotation runbooks.

Failure modes from HN-style operations experience #

Although this launch is fresh, similar agent integrations fail predictably:

  • Card URL typos at onboarding β€” orchestrator tools point at stale skills forever until restart.
  • Clock skew on JWT expiry β€” manifests as flaky 401 retries.
  • Rate limits on partner API during batch compliance scans β€” needs queueing on SaaS side.

Document runbooks beside architecture diagrams.

Language note on Linux Foundation A2A #

AWS states A2A graduated to Linux Foundation governance, which matters for procurement: standards with foundation homes tend to pick up multi-vendor conformance tests over time. Betting on A2A for ISV edges is partly a bet that LangChain, Strands, Google, and AWS keep Agent Card schemas compatible across minor versions β€” still validate with contract tests each release.

Model IDs, notebook timings, and A2A SDK pin versions are accurate as of the November 12, 2026 AWS blog post.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @aws 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/aws-a2a-demo-langcha…] indexed:0 read:8min 2026-11-12 Β· β€”