Skip to content

feat: support AWS Bedrock Application Inference Profiles#11766

Draft
roomote[bot] wants to merge 1 commit intomainfrom
feature/bedrock-application-inference-profiles
Draft

feat: support AWS Bedrock Application Inference Profiles#11766
roomote[bot] wants to merge 1 commit intomainfrom
feature/bedrock-application-inference-profiles

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Feb 26, 2026

Related GitHub Issue

Closes: #11765

Description

This PR attempts to address Issue #11765 by adding first-class support for AWS Bedrock Application Inference Profiles. Feedback and guidance are welcome.

Changes:

  1. Added application-inference-profile to parseArn documentation (src/api/providers/bedrock.ts): Updated the code comments listing supported ARN types to include Application Inference Profile as a recognized format.

  2. Improved model info handling for application inference profiles (src/api/providers/bedrock.ts): Added a dedicated branch in getModelById for application-inference-profile model types. Since these profiles use opaque IDs (often UUIDs) that do not reveal the underlying model, the code now provides reasonable defaults (supportsImages: true) assuming the underlying model is likely a modern Claude model.

  3. Added application-inference-profile example to the UI (webview-ui/src/components/settings/providers/BedrockCustomArn.tsx): Added an example application-inference-profile ARN to the list of format examples shown under the Custom ARN field, so users can see this is a supported format.

  4. Updated ACCESS_DENIED error message (src/api/providers/bedrock.ts): Added a hint about application inference profiles to the error guidance, directing users to enter the full ARN in the "Custom ARN" field rather than the model selector.

  5. Added test cases (src/api/providers/__tests__/bedrock-custom-arn.spec.ts): Added unit tests for application-inference-profile ARN parsing (UUID and alphanumeric profile IDs) and integration test verifying the full ARN is used as the model ID.

Test Procedure

  • Ran npx vitest run api/providers/__tests__/bedrock-custom-arn.spec.ts from src/ directory -- all 14 tests pass
  • Ran npx vitest run api/providers/__tests__/bedrock.spec.ts from src/ directory -- all 57 tests pass
  • All lint checks pass via pre-commit hooks (turbo lint)
  • All type checks pass via pre-push hooks (turbo check-types)

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes.
  • Documentation Impact: No external documentation updates needed; changes are self-documenting through improved UI examples and error messages.
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Documentation Updates

No external documentation updates required. The changes are self-documenting:

  • UI now shows application-inference-profile ARN example
  • Error messages now reference application inference profiles
  • Code comments document the supported ARN format

Interactively review PR in Roo Code Cloud

- Add application-inference-profile to parseArn documentation
- Add dedicated model info handling for application-inference-profile
  ARNs in getModelById (assumes modern Claude model defaults)
- Add application-inference-profile ARN example in Custom ARN UI
- Update ACCESS_DENIED error message to mention application inference
  profiles and the Custom ARN field
- Add test cases for application-inference-profile ARN parsing and
  model ID handling

Addresses #11765
@botoxparty
Copy link

I can confirm that this works as expected, it's still a bit weird to have to go to the dropdown list and select "custom arn" and then a new field will appear.

I'll leave that to you as a product decision for how you want users to enter custom ARNs.

I'm gagged about how easy it was to report the issue and get a solution to be tested. Can't wait to use this in my projects!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Support for AWS Bedrock Application Inference Profiles

2 participants