Section · linked from Module 6

Claude on Amazon Bedrock: an SRE field guide

The SRE view of calling Claude through AWS instead of the Anthropic API. Every fact links the AWS or Anthropic page it came from, opened Nov 26, 2026. Starting thresholds without a source are labeled estimate.

Scope: this covers the bedrock-runtime endpoint (InvokeModel and Converse). AWS also documents a bedrock-mantle endpoint, and Anthropic documents a separate "Claude in Amazon Bedrock" Messages endpoint. They have their own quotas, and invocation logging doesn't capture bedrock-mantle calls. These docs change often; re-read them before relying on any detail.

Invocation pathsInvokeModel, Converse, and their streaming forms
  • InvokeModel sends the model's own request body; for Claude that is the Anthropic Messages format. InvokeModelWithResponseStream is its streaming form.
  • Converse gives one request shape across models; ConverseStream is its streaming form.
  • Errors before the response starts come back as HTTP errors: AccessDeniedException 403, ValidationException 400, ResourceNotFoundException 404, ModelTimeoutException 408, ModelErrorException 424, ThrottlingException 429, InternalServerException 500, ServiceUnavailableException 503. InvokeModel and its stream also list ServiceQuotaExceededException 400.
  • Errors after streaming starts arrive as events inside the stream: throttlingException, modelStreamErrorException, serviceUnavailableException, internalServerException and validationException (InvokeModelWithResponseStream also lists modelTimeoutException). The HTTP status was already a success, so your code has to handle these events.
  • Denying bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream also denies the Converse actions on the same model.

Sources: InvokeModel needs internet, InvokeModelWithResponseStream needs internet, Converse needs internet, ConverseStream needs internet

A ConverseStream call returns half an answer and then stops. The access log shows HTTP 200. Where is the error?

Quotas and throttlingTokens and requests per minute, ThrottlingException, retries
  • Model inference is controlled by token quotas. The AWS quota list shows per-model, per-Region tokens per minute and requests per minute quotas; there is also a tokens-per-day quota.
  • Reservation, not usage: at the start of each request Bedrock deducts input tokens + max_tokens from your quota, and throttles if that exceeds it. Unused tokens come back at the end.
  • Output burndown: output tokens count several times toward the quota, depending on the model; for example 5x for Anthropic models version 4.7 and below. You're billed only for actual tokens.
  • ThrottlingException (429) means the request exceeded your account's quotas. AWS recommends retries with exponential backoff and random jitter.
  • Your account's quotas may be lower than the listed defaults, and increases aren't granted automatically; you request them through Service Quotas, AWS Support or your account manager.
  • AWS SDK retries: standard mode is the default, with max attempts 3 (1 request + up to 2 retries) and longer backoff for throttling errors. Adaptive mode adds a client-side rate limiter. As in Module 4, don't add an app-level retry loop on top.

Sources: Quotas needs internet, How tokens are counted needs internet, Quota list needs internet, Error codes needs internet, SDK retry behavior needs internet

Every request sets max_tokens to the model maximum, but most replies are short. CloudWatch shows low token counts, yet calls are throttled. Why?

Cross-region inferenceCapacity across Regions, and where data is processed
  • Cross-region inference routes requests to compute in other Regions through an inference profile.
  • Geographic profiles keep processing within a geography (such as US, EU or APAC). AWS recommends them for data-residency requirements.
  • Global profiles route to any supported commercial Region worldwide. AWS lists them at approximately 10% savings; Anthropic's page describes regional endpoints as carrying a 10% premium over global ones for newer models.
  • Requests can be routed to Regions you haven't enabled in your account. Data stays on the AWS network and is encrypted in transit.
  • CloudTrail logs every cross-region request in your source Region; the additionalEventData.inferenceRegion field shows where it was processed.
  • SCPs must allow the destination Regions (for global profiles, aws:RequestedRegion "unspecified"). Inference profiles don't support Provisioned Throughput.

Sources: Cross-Region inference needs internet, Anthropic: Claude on Bedrock needs internet

A requirement says customer prompts must be processed only in the EU. Which option fits?

On-demand vs provisioned throughputCost and capacity trade-off
  • On-demand: pay per token, bounded by your account quotas.
  • Provisioned Throughput: billed hourly for a number of Model Units (MUs), each giving a set input and output tokens per minute. Required for custom models.
  • Commitment options are none, 1 month or 6 months. Longer terms are discounted, a committed term can't be deleted early, and billing continues until you delete it.
  • For predictable, sustained throughput, AWS's throttling guidance points to Reserved Tier (through your AWS account team) or Provisioned Throughput, where the model supports them.

Opinion

On-demand fits spiky or early traffic. Provisioned fits a steady load you can measure, because idle MUs still bill by the hour. Decide from a few weeks of InputTokenCount and OutputTokenCount, not a guess.

Sources: Provisioned Throughput needs internet, Error codes (ThrottlingException) needs internet

A pilot bought a 1-month Provisioned Throughput commitment and ended after one week. What happens to billing?

ObservabilityCloudWatch metrics and model invocation logging

CloudWatch metrics in the AWS/Bedrock namespace:

MetricWhat it counts
InvocationsAccepted requests, including ones that later failed. Excludes throttled requests.
InvocationLatencyTime from request to last token.
TimeToFirstTokenTime to the first token, for streaming calls.
InvocationClientErrorsClient-side errors, including requests rejected for exceeding a service quota (not counted as throttles).
InvocationServerErrorsAWS server-side errors.
InvocationThrottlesThrottled requests. Not in the three metrics above, and the count depends on your SDK retry settings.
InputTokenCount / OutputTokenCountTokens in and out.
EstimatedTPMQuotaUsageAn approximation of quota use. AWS says not to use it as the only signal for quota or capacity planning.
  • Model invocation logging is off by default. Turned on, it collects full request and response data to CloudWatch Logs or S3 in the same account and Region, and keeps logging until you delete the configuration.
  • Delivery has its own metrics, for example ModelInvocationLogsS3DeliveryFailure. Alert on those too.
  • Why protect the logs: they hold the prompts and responses themselves, which can include customer data.
  • Dynatrace: if your Dynatrace setup ingests these CloudWatch metrics, build the SLI as (Invocations − ClientErrors − ServerErrors) / (Invocations + Throttles), since throttles aren't counted in Invocations. estimate

Sources: CloudWatch metrics needs internet, Model invocation logging needs internet

InvocationThrottles jumps while Invocations stays flat. Your error-rate SLI is (ClientErrors + ServerErrors) / Invocations and still looks fine. What's wrong?

Guardrails, PrivateLink, IAM and costControls around the model call
  • Guardrails filter inputs and outputs: content filters, denied topics and sensitive-information filters. AWS's own example is a banking app blocking queries or answers that amount to illegal investment advice. In Converse, a block shows up as stopReason: guardrail_intervened.
  • PrivateLink: an interface VPC endpoint (com.amazonaws.region.bedrock-runtime) lets instances without public IPs reach Bedrock privately. Add an endpoint policy to limit what can be called through it.
  • Least-privilege IAM: allow bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream only on the model, inference-profile or provisioned-model ARNs a workload needs. To block a model completely, deny those two actions; that also blocks Converse. The same policy can be used as an SCP across an organization.
  • Cost tracking: create an application inference profile with tags, and activate those tags as cost allocation tags in Billing, so each app or team gets its own cost line.

Sources: Guardrails needs internet, Converse stopReason needs internet, VPC endpoints needs internet, IAM examples needs internet, Application inference profiles needs internet, Tagging needs internet

You want to block all inference on one model across the organization. Which actions should the deny policy name?

Failure-mode tableSymptom, first check, starting threshold
FailureSymptomFirst checkStarting threshold
Throttling surgeThrottlingException 429; InvocationThrottles upQuota in Service Quotas; max_tokens sizes; stacked retry layersTicket: any throttles for 15 min. Page: throttles over 1% of requests for 5 min estimate
Model access not in placeAccessDeniedException 403, often on first calls to a new modelMarketplace permissions, the Anthropic first-time-use form for older models, payment method, SCPsPage on any 403 after a deploy or model change estimate
Regional capacityServiceUnavailable 503 or overloaded_error 529; InvocationServerErrors upThe AWS Region's health; whether a cross-region profile is in usePage: server errors over 1% for 5 min estimate
Stream breaks mid-responsePartial answers; error events such as modelStreamErrorException after a 200Client and proxy idle timeouts; TimeToFirstToken vs InvocationLatencyTicket: incomplete streams over 0.5% of streams in an hour estimate
Guardrail blockstopReason guardrail_intervened; users see refusalsWhether the guardrail version changed recentlyTicket: intervention rate double its baseline week estimate

Symptoms come from the error-code guide needs internet, the model access page needs internet and the API references above. Every threshold is an estimate to tune.

Right after switching to a newly released Claude model, every call returns AccessDeniedException. The IAM role allows bedrock:InvokeModel on it. What do you check first?

Side-by-side with the Anthropic APIFor the Claude users playbook
SituationAnthropic APIBedrock (bedrock-runtime)
Over your limit429 rate_limit_error, usually with retry-after429 ThrottlingException: exceeded account quotas
Provider busy529 overloaded_error503 ServiceUnavailable, or 529 overloaded_error; both are capacity, not your quota
Spend cap429 with error_code enforced_spend_limit_reached; don't retryBilled through AWS. I found no matching error in the pages I read: I don't know.
Quota unitRequests, input tokens and output tokens per minuteTokens and requests per minute and tokens per day; reserves input + max_tokens; output burndown
SDK retries2 retries (3 attempts); retry-after, else 0.5 to 8 s backoffStandard mode: 3 attempts total, backoff with jitter, longer for throttling
ID for supportrequest-id headerThe AWS request ID, plus model ID, Region and approximate time
AccessAPI keyIAM permissions plus an automatic Marketplace subscription on first use
FeaturesFull Anthropic feature setSome features missing, for example the Files API, server-side tools and Message Batches

Sources: Claude API errors needs internet, Claude rate limits needs internet, Bedrock error codes needs internet, Bedrock token counting needs internet, AWS SDK retries needs internet, Anthropic: Claude on Bedrock needs internet. See also the Claude users playbook.

A user on Bedrock reports '429 errors' and asks if Anthropic is down. Best first answer?

Regulated angle

Study notes, not legal or compliance advice. Kept generic: no account IDs, resource names or any organization's setup.