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. This guide covers the IAM and networking setup that your IT or platform team needs to complete before developers can use AWS connectors in their agents.How It Works
When an agent calls an AWS connector (e.g., “query this Redshift table”), the request flows through the AI Gateway, which assumes an IAM role via Pod Identity. The role is scoped to specific AWS services and resources. The AI Gateway then calls the AWS API on behalf of the agent — all within your VPC. The IAM role requires three trust principals:1. Create the IAM Role
2. Attach Service Permissions
Attach permission policies based on which AWS connectors 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 connectors in the xpander UI. Each connector 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 Connectors
The AWS APIs Operator supports any AWS service accessible via IAM. Common connectors: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 connector 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 connector configuration 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 AI Gateway 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.

