Kubernetes/EKS only. On a VM, skip this page.
- read observability credentials from AWS Secrets Manager or AWS SSM Parameter Store;
- read app logs from CloudWatch;
- check app pod health through the EKS API;
- connect to Amazon MSK with IAM auth;
- call AWS Bedrock if Bedrock is selected as the LLM backend.
INFO
Wire this before the pod first needs AWS access. This is not always a hard gate before the initial Helm install. If you start with Claude API, Confluent Cloud, and Kubernetes Secrets only, you can skip this page initially. If you later switch a Kafka credential reference to AWS Secrets Manager or SSM, create the Pod Identity association and restart the pod before registering or patching that Kafka cluster.
When pod AWS identity is required
WARNING
The pod reads observability credentials only. Do not grant the Sariva platform pod access to the Kafka admin key at
<stage>/<env>/clusters/<cluster>/kafka-admin. The admin key is for GitHub Actions / Terraform. The pod needs read access only to <stage>/<env>/clusters/<cluster>/observability-reader.Credential-store mapping at Kafka cluster connection time
1. Set variables
Use the namespace and ServiceAccount from the Sariva Helm release. The default release uses namespacesariva-platform and ServiceAccount sariva-platform.
2. Create the Pod Identity trust policy
Createpod-identity-trust-policy.json:
3. Attach only the runtime permissions the pod needs
Example: AWS Secrets Manager observability credentials only
Use this when the pod only needs to read Kafka observability credentials from AWS Secrets Manager:* on observability-reader*.
Example: AWS SSM observability credentials only
Add other feature permissions only when enabled
The cross-account assume statement, written out — add one
Resource entry per target account’s reader role (a JSON array if several):
sts:TagSession in the same statement as sts:AssumeRole. Omitting it — or scoping Resource to the wrong ARN — makes every cross-account read fail AccessDenied (the reader role’s trust policy needs the matching sts:TagSession too; see Cross-account reader setup).
DANGER
Do not use one broad AWS policy for every possible future feature. Add only the statements for features you actually enable.
4. Install the EKS Pod Identity Agent add-on
The Pod Identity association in the next step only takes effect if the EKS Pod Identity Agent add-on is running on the cluster — and it is not installed by default. Install it once per cluster:NoCredentialsError until the agent is installed.
5. Create the EKS Pod Identity association
Create the association between the IAM role and the Sariva platform Kubernetes ServiceAccount:INFO
This is safe after install. It is a normal rolling restart. The admin bearer seed is idempotent,
platform.db remains on the PVC, and existing API keys are not recreated or lost.WARNING
The association is scoped to this EKS cluster. It survives Helm upgrades, but if you delete and recreate the EKS cluster the association is gone. The IAM role itself persists (IAM is account-level), so after a cluster rebuild just re-run this association step and restart the pod.
6. Verify pod identity after deploy
Port-forward or use any shell that can reach the cluster, then find the deployment:Add pod identity later before registering AWS credential refs
If the platform is already running and you later move Kafka credentials to AWS Secrets Manager or SSM:- Create or update the Pod Identity role and policy.
- Create the Pod Identity association for the Sariva platform ServiceAccount.
- Restart the pod.
- Then register or patch the Kafka cluster with the AWS credential reference.
DANGER
Do not register or patch a Kafka cluster with an AWS Secrets Manager or SSM credential reference before the pod has AWS read access to the observability credential path. The platform must hold the AWS role first, or credential resolution fails.
Continue the deployment path
Next: deploy the Sariva platform
Install the Helm chart using
values.yaml, config/customer_config.yaml, and the runtime Secret. Pod Identity can also be associated later before the pod first needs AWS access.Back to deployment path
Return to the supported deployment path checklist.