View a markdown version of this page

Connecting Remote A2A Agents - AWS DevOps Agent

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 (JSONRPC or HTTP+JSON), and protocol version

    • capabilities – 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

  1. Sign in to the AWS Management Console

  2. Navigate to the AWS DevOps Agent console

  3. Go to the Capability Providers page (accessible from the side navigation)

  4. Find Remote Agent in the Available providers section and click Register

  5. 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:

  1. API Key Name – A user-friendly name for the API key

  2. API Key Header – The header name expected by the service (for example, x-api-key)

  3. API Key Value – The API key value for authenticating with the service

Bearer Token – Authenticate using a bearer token (RFC 6750):

  1. Token – The bearer token value

OAuth Client Credentials – Authenticate using OAuth 2.0 client credentials grant flow:

  1. Client ID – Enter the client ID of the OAuth client

  2. Client Secret – Enter the client secret of the OAuth client

  3. Exchange URL – Enter the OAuth token exchange endpoint URL

  4. Add Scope – Add OAuth scopes for authentication

AWS SigV4 – Authenticate using AWS Signature Version 4:

  1. 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.

  2. AWS Region – Enter the AWS Region for SigV4 signing (for example, us-east-1)

  3. Service Name – Enter the AWS service name for SigV4 signing (for example, execute-api for API Gateway, bedrock-agentcore for Amazon Bedrock AgentCore)

  4. Click Next

Step 2: Review and register

  1. Review all the remote agent configuration details

  2. Click Register to complete the registration

  3. AWS DevOps Agent will validate the connection by fetching your agent card

  4. 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:

  1. In the AWS DevOps Agent console, select your Agent Space

  2. Go to the Capabilities tab

  3. In the Remote Agents section, click Add

  4. Select the registered remote agent you want to connect to this Agent Space

  5. 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.