Intermediate16 min

AWS Bedrock

When to choose Bedrock over the direct API, how to set up ChatBedrockConverse with cross-region inference, configure Bedrock Guardrails for content safety and PII, size provisioned throughput with breakeven math, and build a production reference with model tiering and cost monitoring.

Quick Reference

  • Use ChatBedrockConverse (not ChatBedrock) for all new projects — ChatBedrock is legacy
  • Cross-region model IDs start with us., eu., or ap. prefix: us.anthropic.claude-sonnet-4-6-v1:0
  • IAM roles only — never hardcode credentials; attach to ECS task role or Lambda execution role
  • bedrock:ApplyGuardrail permission is required when attaching a guardrail to your ChatBedrockConverse call
  • ThrottledCount > 0 in CloudWatch is the signal to evaluate provisioned throughput
  • Provisioned throughput requires ≥ 30 days of traffic data — size to P95 peak + 20% headroom
  • Bedrock Guardrails handle AWS-level content filtering; application-level guardrails are a separate layer

Should You Use Bedrock?

Bedrock is not the right default for every LLM workload. It adds an AWS dependency and often lags 1–4 weeks behind direct API model availability. The question is whether what it gives you — IAM, VPC, compliance, consolidated billing — is worth that trade-off for your specific context.

CriterionBedrock winsDirect API wins
ComplianceSOC2 / HIPAA / PCI inherited from AWS environment — no separate attestationSimpler architecture when compliance is handled at app layer
AuthenticationIAM roles — no API keys to rotate, leak, or audit separatelySingle API key per provider — less IAM complexity
Network isolationVPC endpoints available — traffic never touches public internetNo VPC dependency
BillingLLM costs on existing AWS bill — single vendor, single cost centerSeparate invoice per provider — cleaner cost attribution
Model freshnessLags direct API by 1–4 weeks on new releasesClaude Opus 4.7, Mythos Preview — available immediately
Multi-modelClaude, Llama 4, Mistral, Amazon Nova in one API surfaceSeparate SDK per provider
When to choose Bedrock

Choose Bedrock if two or more of these are true: (1) your workload runs inside an existing AWS environment; (2) you need SOC2/HIPAA compliance without a separate vendor review; (3) your security team requires IAM-only auth; (4) you need multi-model access from one API surface. If you're on a different cloud or need the latest model the day it ships, start with the direct API.