Arcana ARCANA

AWS Bedrock

AWS Bedrock provides access to Claude, Llama, Mistral, and other models through AWS infrastructure. Uses IAM authentication (SigV4) — no API key required. Ideal for enterprise environments where data cannot leave AWS.

Setup

# 1. Configure AWS credentials (standard AWS SDK auth)
export AWS_ACCESS_KEY_ID=AKIA...
export AWS_SECRET_ACCESS_KEY=...
export AWS_DEFAULT_REGION=us-east-1

# 2. Verify detection
arcana doctor

# 3. Run
arcana run "hello"

Available Models

ModelProviderBest For
anthropic.claude-sonnet-4-20250514-v1:0AnthropicBest balance of speed and quality
anthropic.claude-opus-4-20250514-v1:0AnthropicHighest quality reasoning
meta.llama-3.1-405b-instructMetaLarge open-weight model
meta.llama-3.1-70b-instructMetaGood balance of cost and quality
mistral.mistral-large-2407-v1:0MistralFast, European compliance

Config File

{
  "provider": "bedrock",
  "model": "anthropic.claude-sonnet-4-20250514-v1:0"
}

Environment Variables

VariableDescription
AWS_ACCESS_KEY_IDIAM access key (required)
AWS_SECRET_ACCESS_KEYIAM secret key (required)
AWS_SESSION_TOKENSession token for temporary credentials (optional)
AWS_DEFAULT_REGIONAWS region (default: us-east-1)
AWS_PROFILENamed AWS profile from ~/.aws/credentials

IAM Authentication

Bedrock uses AWS IAM SigV4 signing — no API keys to manage. Arcana signs requests using your AWS credentials. This means:

  • No data leaves AWS infrastructure
  • Audit trails via CloudTrail
  • Fine-grained IAM policies for model access
  • VPC endpoints for private connectivity

Required IAM Permissions

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream"
      ],
      "Resource": "arn:aws:bedrock:*::foundation-model/*"
    }
  ]
}

Tips

  • Use AWS_PROFILE for local development with named profiles
  • Set AWS_SESSION_TOKEN for temporary credentials (e.g., from STS AssumeRole)
  • Bedrock models have the same capabilities as their direct API counterparts
  • Check the AWS Bedrock model IDs for the latest model identifiers
Last updated: Jul 24, 2026