Skip to content
BENIBIX Learn

ANTHROPIC_BEDROCK_REGION_PREFIX

AI⌨️ Claude CodeConfiguration

Also known as ANTHROPIC_BEDROCK_REGION_PREFIX environment variable

It picks which group of Bedrock regions to try first.

Think of it like

It is like you pick which group of stores to shop at first.

Example

Emma's company must keep its data in Europe. She sets the prefix to eu, so Bedrock serves her from European regions.

Why it matters

Where your requests run can matter for law, for speed and for which models you can use.

Definition

ANTHROPIC_BEDROCK_REGION_PREFIX picks the cross-region group Claude Code tries first on Bedrock. The values are us, eu, apac, jp, au and global. By default Claude Code works out the group from your AWS region. It is ignored in AWS GovCloud regions, and needs version 2.1.224 or later.

Example code

bash
export ANTHROPIC_BEDROCK_REGION_PREFIX=eu
claude
Keep requests in EU regions.

Common mistake

Writing a full region such as eu-west-1. It wants the short group name, such as eu.

Key takeaways

  1. 1
    Short group name. us, eu, global and more.
  2. 2
    Tried first. Over the derived one.
  3. 3
    Not in GovCloud. Ignored there.