WF-003: Amazon Bedrock
DOCUMENT CONTROL
| Field | Value |
|---|---|
| WF ID | WF-003 |
| Version | 1.0 |
| Status | Active |
Purpose
Configure Claude Code to use Amazon Bedrock as the backend.
Prerequisites
- AWS account
- Bedrock access enabled
- Claude models enabled in Bedrock
- AWS CLI configured
Setup
1. Enable Bedrock
bash
export CLAUDE_CODE_USE_BEDROCK=12. Configure AWS Credentials
bash
aws configureOr set environment variables:
bash
export AWS_ACCESS_KEY_ID=your-key
export AWS_SECRET_ACCESS_KEY=your-secret
export AWS_REGION=us-east-13. Start Claude Code
bash
claudeConfiguration Options
| Variable | Description |
|---|---|
| CLAUDE_CODE_USE_BEDROCK | Enable Bedrock |
| AWS_REGION | AWS region |
| AWS_PROFILE | Named profile |
Model Selection
Available Bedrock models:
- claude-3-5-sonnet
- claude-3-opus
- claude-3-haiku
Benefits
- AWS integration
- VPC security
- Compliance features
- Cost management
Best Practices
Bedrock Tips
- Use IAM roles
- Enable CloudWatch logs
- Set usage limits
- Monitor costs