Deploying an A2A agent
An A2A agent is a plain HTTP service, so it runs anywhere you can serve HTTPS: a container platform, a serverless runtime, a VM, or your own data center. Parivox needs only its Agent Card URL and, if you require one, a fixed header credential.
The AWS example
Section titled “The AWS example”The examples repository includes a complete deployment of research-specialist-sdk to ECS Fargate, with GitHub Actions and OIDC. It’s documented in Deploying an agent to AWS. It reflects Parivox’s own deployment architecture as an example; adapt it to your infrastructure.
- Each agent has its own CloudFormation stack and runs as a single-replica Fargate service, discoverable through AWS Cloud Map private DNS.
- The workflow assumes an AWS role through OIDC, so no long-lived AWS keys are stored in GitHub. The role’s trust policy names the repository and a protected GitHub environment, so no other repository, branch or fork can assume it.
- Account-identifying values (role ARN, VPC and subnet IDs, secret ARNs) are stored as environment secrets, not variables, so they’re masked in public job logs. The workflow also masks the AWS account ID that appears in every image URI.
- The deploy runs only when started by hand, only in a repository that has opted in.
Two deliberate constraints in the example
Section titled “Two deliberate constraints in the example”- Single replica. In
a2a-python(#1135) a customQueueManageris silently ignored by the v2 handler, which breaks cross-replica streaming and resubscription. Don’t scale out without revisiting it. - Never publicly exposed.
a2a-python(#1159) has a live-task Subscribe/Cancel owner-isolation bypass in 1.1.2. The example services are reachable only from within their VPC, from one allowed client security group, with no load balancer or public listener.
A safe workflow pattern
Section titled “A safe workflow pattern”Chaining a deploy to CI with workflow_run is a common pattern and a common hole: for a pull request from a fork, workflow_run.head_branch is the fork’s branch name, so checking head_branch == 'main' alone lets a fork’s code deploy with your cloud role. If you use that trigger, also require workflow_run.event == 'push' and workflow_run.head_repository.full_name == github.repository.
Keep secrets out of history
Section titled “Keep secrets out of history”Run a secret scanner such as gitleaks on every push. A credential, account ID, ARN or internal hostname that lands in git history can’t be removed by a later commit.