What
On Bedrock, if AWS_REGION or AWS_DEFAULT_REGION holds a value Claude Code cannot use, the region display now says the variable was invalid and ignored and tells you to fix or unset it, rather than showing the generic hint to set a region.
Details
- The AWS client path now waits for the region to resolve and passes it explicitly, so the label and the region actually used agree.
Evidence
region env var invalid, ignored; fix or unset AWS_REGION / AWS_DEFAULT_REGION
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleAWS_REGIONAWS_DEFAULT_REGION
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up AWS_REGION, on Claude Code on Amazon Bedrock.
* You only need to set `AWS_REGION` to override your AWS profile's region or when your profile has no region. Claude Code resolves the region in this order:amazon-bedrock see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up AWS_REGION, on Claude Code on Amazon Bedrock.