A malformed AWS region variable is now ignored, falling back to us-east-1.
What's wrong with this entry?
AWS_REGION and AWS_DEFAULT_REGION are checked against a region-shaped pattern before use. A value that fails the check is ignored and the fallback us-east-1 is used, where previously any non-empty value was passed through verbatim.
- The Bedrock status line says so: "(default — region env var invalid, ignored; fix or unset AWS_REGION / AWS_DEFAULT_REGION)".
- The region resolver reports its source as
env-invalidin that case.
DGg = /^[a-z]{2,}(?:-[a-z0-9]+){0,4}$/i;
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.228
Bedrock no longer fails when neither a region nor a base URL is set
Both mention region bedrock
-
v2.1.224
ANTHROPIC_BEDROCK_REGION_PREFIXpins the Bedrock inference-profile regionBoth mention region bedrock
-
v2.1.224
Two warnings when a Bedrock region prefix cannot be confirmed
Both mention region bedrock