What happens when an AI agent built by one company needs to ask an agent built by another company for help? AWS answers with the Agent-to-Agent (A2A) protocol, an open standard that lets agents discover each other and exchange tasks. The A2A protocol AWS reference architecture shows how this works across two separate AWS accounts.
What problem does A2A solve?
AWS explains that agents spanning organizational boundaries need to find each other, communicate and hand off tasks without exposing their internals. They should also not require the same framework on both sides. Without a shared protocol, a software vendor needs custom integration code for each customer and framework.
With A2A, AWS says, vendors can build agents that work with the A2A-compatible frameworks their customers already use. AWS frames its walkthrough around software vendors but says the pattern also fits partners, customers or internal teams that use different frameworks.
AWS notes that A2A is now a Linux Foundation project and that AWS is among its supporters. The protocol relies on existing authentication standards, OAuth 2.0 and OpenID Connect, for security across boundaries.
How does the reference system fit together?
AWS describes three agents in two accounts: one belongs to an enterprise, the other to a software-as-a-service (SaaS) provider. Each account has its own Amazon Cognito user pool, so each side signs in users and agents with its own identity provider.
The enterprise side
Two agents run on Amazon ECS with AWS Fargate, both in private subnets of an Amazon VPC with no public IP addresses. The first is the orchestrator, a LangChain agent that serves as the entry point for users. Amazon Bedrock supplies the foundation models behind its reasoning.
At startup, the orchestrator reads the SaaS agent’s Agent Card. An Agent Card is a public description of what an agent can do, published at a well-known web address. The orchestrator creates one LangChain tool for each skill listed on the card. The model then chooses which tool to call based on the user’s question, so AWS says no hardcoded routing logic is needed.
The second enterprise agent supplies internal context: policy rules, data classification, business criticality and escalation contacts such as on-call rotations. AWS says it is built with LangChain and uses the official A2A software development kit.
The SaaS provider side
The compliance agent runs on Amazon Bedrock AgentCore runtime in the provider’s own account and is built with the Strands Agents SDK. It checks AWS accounts against the enterprise’s internal policies, such as no public storage in production and encryption at rest for confidential data. AWS says production versions would connect to services like AWS Config, Security Hub or GuardDuty, while the demo uses synthetic data to simulate findings.
How does a request travel between the two accounts?
AWS lists a seven-step flow:
- The enterprise app gets an access token from the enterprise Cognito pool.
- It sends a question over HTTPS to an Amazon API Gateway API and polls for the answer.
- API Gateway forwards the request privately, through a VPC link and an internal Network Load Balancer, to the orchestrator.
- If the model decides a compliance scan is needed, the orchestrator obtains its own token, using a client secret kept in AWS Secrets Manager.
- The orchestrator sends an A2A request to the compliance agent, using the skill it read from the Agent Card.
- The compliance agent checks the context agent’s Agent Card at a callback address registered during onboarding, then gets a token from the provider’s own pool.
- It calls the context agent for account metadata, finishes the scan and returns the answer back through the orchestrator to the app.
The context agent sits behind a separate partner API that accepts only the provider’s callback token. The result is authentication in both directions, with each side validating tokens issued by the other side’s pool.
What is shared during onboarding?
AWS states that the two organizations exchange only public values: identity provider URLs, client IDs, scopes and endpoint URLs. Each side then trusts tokens from the other’s user pool. No secrets are shared, and AWS says neither side depends on the other’s framework or SDK.
How does the system grow?
AWS says new skills are added by registering Agent Cards with the orchestrator, without changing agents that already run. This is what the post means by composable: capabilities plug in through published descriptions instead of rewritten integrations.
Where this fits in AWS’s earlier work
AWS points to an earlier post in its open-protocols series that introduced A2A concepts with two Strands agents, covering Agent Card discovery, structured task execution and the A2A server pattern. The new walkthrough adds cross-framework interoperability, cross-organizational trust boundaries and OAuth in both directions. AWS says readers can deploy the system from three Jupyter notebooks and run an end-to-end test.
This is a single official AWS source describing a reference architecture with synthetic data, so it shows a design pattern and not proof of production adoption. Anyone evaluating it would need to check the current AWS documentation for costs, regional availability and the status of each service involved.