Skip to content

[BUG] Custom ARN Regex for AWS Bedrock is too strict #9481

@wisestmumbler

Description

@wisestmumbler

Problem (one or two sentences)

Expected to be able to add a custom ARN for aws-us-gov but roo code does not believe it is valid

Context (who is affected and when)

Happens when a user attempts to add a custom ARN for aws-us-gov

Reproduction steps

Roo Code VSCode Plugin v3.33.3 (windows)
Using AWS Provider with the settings in screenshot attached

Example Custom ARN:
arn:aws-us-gov:bedrock:us-gov-west-1:123456789012:inference-profile/us-gov.anthropic.claude-sonnet-4-5-20250929-v1:0

Image

Expected result

Should accept the arn

Actual result

"Invalid ARN format. Please check the format requirements." and fails to run

Variations tried (optional)

Changing arn to arn:aws:bedrock... fails to actually resolve because the "-us-gov" is required by bedrock

ref: https://github.com/RooCodeInc/Roo-Code/blob/main/webview-ui/src/utils/validate.ts#L228C40-L228C49
(maybe more places too?)

App Version

v3.33.3

API Provider (optional)

AWS Bedrock

Model Used (optional)

us-gov.anthropic.claude-sonnet-4-5-20250929-v1:0

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions