Connecting Remote A2A Agents
Remote agents extend AWS DevOps Agent's investigation capabilities by delegating tasks to external agents that implement the Agent-to-Agent (A2A) protocol. When you connect a remote agent, AWS DevOps Agent can assign investigation subtasks to it and incorporate its findings into the overall investigation. This guide explains how to connect a remote agent to AWS DevOps Agent.
Requirements
Before connecting a remote agent, ensure your agent meets these requirements:
A2A protocol support – Your agent must implement the Agent-to-Agent (A2A) protocol
(JSONRPC or HTTP+JSON binding) and serve a valid agent card at an accessible URL. The agent card tells AWS DevOps Agent how to communicate with your agent. The same authentication credentials used to invoke the agent are used to fetch the agent card. The following agent card fields are required: name – A unique name identifying your agent
description – A description of your agent's capabilities. AWS DevOps Agent uses this to determine which remote agent is best suited for a given subtask
supportedInterfaces – Declares the invoke endpoint URL, protocol binding (
JSONRPCorHTTP+JSON), and protocol versioncapabilities – An object indicating whether your agent supports streaming responses
skills – An array describing the specific capabilities of your agent. AWS DevOps Agent uses skills to route tasks to the most appropriate remote agent
Authentication support – Your remote agent must support one of the following authentication methods: Bearer token, OAuth Client Credentials, API key, or AWS Signature Version 4 (SigV4).
Security considerations
When connecting remote agents to AWS DevOps Agent, consider these security aspects:
Read-only agents – Remote agents should be designed for investigation and data gathering only. Ensure that remote agents do not perform write operations or modifications to production systems.
Prompt injection risks – Remote agents can introduce additional risk of prompt injection attacks. See Prompt injection protection: AWS DevOps Agent Security for more information.
See AWS DevOps Agent Security for more information on prompt injection and the shared responsibility model.
Registering a remote agent (account-level)
Remote agents are registered at the AWS account level and shared among all Agent Spaces in that account.
Step 1: Configure remote agent
Sign in to the AWS Management Console
Navigate to the AWS DevOps Agent console
Go to the Capability Providers page (accessible from the side navigation)
Find Remote Agent in the Available providers section and click Register
On the Configure remote agent page, enter agent details and authentication configuration:
Agent details:
Name – A unique name for this remote agent
Agent card endpoint – HTTPS URL for the remote agent's agent card. AWS DevOps Agent fetches this URL to discover the agent's capabilities and invoke endpoint.
Description (optional) – Add a description to help identify the agent's purpose
Authentication method:
Select one of the following authentication methods:
API Key – Authenticate using a static API key sent in a custom header:
API Key Name – A user-friendly name for the API key
API Key Header – The header name expected by the service (for example,
x-api-key)API Key Value – The API key value for authenticating with the service
Bearer Token – Authenticate using a bearer token (RFC 6750):
Token – The bearer token value
OAuth Client Credentials – Authenticate using OAuth 2.0 client credentials grant flow:
Client ID – Enter the client ID of the OAuth client
Client Secret – Enter the client secret of the OAuth client
Exchange URL – Enter the OAuth token exchange endpoint URL
Add Scope – Add OAuth scopes for authentication
AWS SigV4 – Authenticate using AWS Signature Version 4:
Configure IAM role – Choose one of the following options:
Use an existing role – Select an existing IAM role from the dropdown. The role must have a trust policy that allows the AWS DevOps Agent service principal to assume it (see Creating an IAM role for SigV4 authentication).
Create a new role manually – Follow the step-by-step instructions displayed in the console to create a new IAM role with the correct trust policy.
AWS Region – Enter the AWS Region for SigV4 signing (for example,
us-east-1)Service Name – Enter the AWS service name for SigV4 signing (for example,
execute-apifor API Gateway,bedrock-agentcorefor Amazon Bedrock AgentCore)Click Next
Step 2: Review and register
Review all the remote agent configuration details
Click Register to complete the registration
AWS DevOps Agent will validate the connection by fetching your agent card
Upon successful validation, your remote agent will be registered at the account level
Associating remote agents with an Agent Space
After registering a remote agent at the account level, you can associate it with specific Agent Spaces:
In the AWS DevOps Agent console, select your Agent Space
Go to the Capabilities tab
In the Remote Agents section, click Add
Select the registered remote agent you want to connect to this Agent Space
Click Add to associate the remote agent with your Agent Space
AWS DevOps Agent will now be able to delegate investigation subtasks to your remote agent in this Agent Space.
Managing remote agent connections
Viewing connected agents – To see all remote agents connected to your Agent Space, select your Agent Space, go to the Capabilities tab, and check the Remote Agents section.
Removing remote agent connections – To disconnect a remote agent from an Agent Space, select the agent in the Remote Agents section and click Remove. To completely delete a remote agent registration, remove it from all Agent Spaces first, then navigate to Capability Providers and click Deregister.
Updating authentication credentials – If your authentication credentials need to be updated, you will need to re-register your remote agent. Navigate to the Capability Providers page in the AWS DevOps Agent console, locate your remote agent, remove any active associations, and click Deregister. Next, register your remote agent with the new authentication credentials and re-create any necessary associations with your Agent Space.