docs(self-hosting): check every EKS Pod Identity association before the install
What
Install on EKS, step 6, gets a Pod Identity check after the settings check, which both the Terraform path and the bring-your-own-AWS path run:
ServiceAccount (namespace agent-relay) | Needs | Role |
|---|---|---|
agent-relay-worker | S3 read/write | sessions |
agent-relay-session-ingest-api | S3 read/write | sessions |
agent-relay-search-indexer | S3 read, OpenSearch write | search indexer |
agent-relay-session-read | S3 read, OpenSearch read | search reader |
for sa in agent-relay-worker agent-relay-session-ingest-api agent-relay-search-indexer agent-relay-session-read; do
id="$(aws eks list-pod-identity-associations --cluster-name <cluster name> --region "$AWS_REGION" \
--namespace agent-relay --service-account "$sa" --query 'associations[0].associationId' --output text)"
case "$id" in a-*) echo "ok $sa" ;; *) echo "MISSING $sa" ;; esac
done
Done when four lines start with ok. For a MISSING line, the guide gives the aws eks create-pod-identity-association command and which role to use; the agent block asks the human first, since that changes IAM. Troubleshooting gets a no Locker credentials row.
Why
In the EKS rehearsal on 2026-11-26, the team had created its own roles for alleyoop, session-ingest-api, the search indexer and session-read, but had no association for agent-relay-worker. Nothing failed until much later, when the session summary worker logged no Locker credentials: set LOCKER_ACCESS_KEY_ID/LOCKER_SECRET_ACCESS_KEY, or run with EKS Pod Identity. The Terraform in step 4 already creates all five associations, and IAM and Pod Identity documents them. The gap was that the guide never checked them.
agent-relay-alleyoop is left out of the loop: the values-eks-native.yaml profile this guide installs doesn't render it (checked by rendering chart 0.7.54). The guide says its association is harmless.
Dependencies
None: this uses only the aws CLI. The matching diagnostic check, which compares associations against the ServiceAccounts the release actually renders and prints the exact create line, is AgentWorkforce/infra#558.
Tests
vitest run lib/test/selfhost-docs.test.ts lib/test/selfhost-docs-page.test.tsx: 24 passed.
๐ค Generated with Claude Code
Open in [code]smith ยท Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Adds a check in step 6 of Install on EKS that verifies every ServiceAccount has its Pod Identity association before the install proceeds.
The check lists the four ServiceAccounts, their access needs, and the role each uses, then runs aws eks list-pod-identity-associations for each and prints ok or MISSING. A missing association can go unnoticed until much later, like the agent-relay-worker case, which only surfaces as no Locker credentials in session summary worker logs. For missing associations, the guide provides the create-pod-identity-association command with the role to use, and the agent block asks the human before running it since it changes IAM. Troubleshooting gets a no Locker credentials row explaining the cause and fix.