Architecture
Prerequisites
- EKS cluster (v1.23+) or ECS cluster
- AWS CLI configured with appropriate permissions
kubectlconfigured for your EKS cluster- Your AWS Account ID allowlisted by Bifrost team
Contact the Bifrost team to get your AWS account ID and IAM role ARN allowlisted for ECR access.
IRSA (Recommended)
IAM Roles for Service Accounts (IRSA) provides the most secure authentication method for EKS deployments.Step 1: Create IAM Policy
Create an IAM policy that grants ECR pull access to the Bifrost repository.bifrost-ecr-pull-policy.json and create it:
Step 2: Create IAM Role with OIDC Trust
Create an IAM role that can be assumed by your Kubernetes ServiceAccount. First, get your OIDC provider URL:trust-policy.json):
Step 3: Provide Role ARN to Bifrost
Send your IAM role ARN to the Bifrost team for allowlisting:Step 4: Create Namespace and ServiceAccount
Step 5: Deploy Bifrost
ECS Task Roles
For ECS deployments, use IAM Task Roles for authentication.Step 1: Create Task Execution Role
The task execution role allows ECS to pull images from ECR.Step 2: Create ECS Task Definition
Step 3: Create ECS Service
Verifying Access
Test ECR Authentication
Verify IRSA Configuration
Troubleshooting
ImagePullBackOff Errors
- Check IAM Role trust policy: Ensure the OIDC provider and ServiceAccount match
- Verify ECR permissions: Confirm the role has
ecr:BatchGetImagepermission - Check allowlisting: Ensure your role ARN is allowlisted by Bifrost team
Authentication Errors
Next Steps
- Configure Bifrost settings for your use case
- Set up observability for monitoring
- Enable clustering for high availability

