Overview
The AWS APIs Operator is the component that lets xpander agents interact with AWS services in your account - Redshift, Athena, Power BI, and more. In a self-hosted deployment, the operator runs inside your VPC and uses IAM roles with EKS Pod Identity to authenticate. No AWS credentials leave your cluster.How It Works
When an agent calls an AWS skill (for example, “query this Redshift table”), the request flows through the Agent Controller’s embedded skill relay (agent-controller). The relay assumes an IAM role via Pod Identity and hands the call to the AWS Operator service. The role is scoped to specific AWS services and resources, and the AWS API is called on behalf of the agent, all within your VPC. The Agent Controller runs as the agent-controller ServiceAccount, and every other component runs as the namespace’s default ServiceAccount. Create the Pod Identity association below for both; do not scope it to a single pod.
The IAM role requires three trust principals:
1. Create the IAM Role
2. Attach Service Permissions
Attach permission policies based on which AWS skills your agents will use. Only grant what’s needed.Redshift
Redshift
Athena
Athena
3. Associate Role with Pod Identity
4. Network Access
If the AWS service runs inside your VPC (e.g., a private Redshift cluster), ensure the service’s security group allows traffic from the EKS cluster security group:5. Configure in xpander
Once the IAM role and network access are set up, developers can configure individual AWS skills in Xpander Chat. Each skill’s connection requires:- IAM Role ARN - the role created above
- Region - your AWS region
- Auth Method - IAM
- Service-specific parameters (cluster ID, database name, bucket name, etc.)
Supported AWS Skills
The AWS APIs Operator supports any AWS service accessible via IAM. Common skills:Redshift
Query private Redshift clusters
Athena
Run Athena queries
Power BI
Connect to Power BI datasets
Credential Management with AWS Secrets Manager
Instead of storing a skill’s API keys directly in xpander, you can pull them from AWS Secrets Manager at runtime. This keeps credentials out of xpander’s database entirely.How It Works
- Enable “Use AWS Secrets Manager” in the skill’s connection settings in xpander
- Provide the secret ARN (e.g.,
arn:aws:secretsmanager:us-east-1:123456789012:secret:my-api-key-AbCdEf) - The xpander pod uses its IAM role to retrieve the secret at runtime
- Credentials are never persisted in xpander’s storage
Required Permissions
Add Secrets Manager access to the IAM role:Troubleshooting
sts:AssumeRole AccessDenied (self-assume)
sts:AssumeRole AccessDenied (self-assume)
The Agent Controller re-assumes its own role internally. The trust policy needs a
SelfAssume statement for the role’s own ARN without an ExternalId condition. Also add sts:AssumeRole as a permission policy.Service connection timeout
Service connection timeout
Check the service’s security group allows the relevant port from the EKS cluster security group. For VPC-internal services, they must be in the same VPC or have VPC peering/transit gateway configured.

