claude-code - 💡(How to fix) Fix [BUG] Unable to specify AWS eu-central-1 as a region when using a Bedrock API key

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

I'm trying to use /login to update an expired AWS Bedrock API key.

When attempting to specify the region as eu-central-1, typing eu-cen cancels the command input.

Typing another region, such as eu-west-1 works without issues. Pasting eu-central-1 as a string works without issues.

https://github.com/user-attachments/assets/dca5c383-07bf-4e19-b24f-5b1c04e94996

What Should Happen?

The TUI should allow me to type eu-central-1 into the input field without cancelling the command.

Error Messages/Logs

Steps to Reproduce

  1. Open Claude in a terminal. (in my case, I'm SSHing into an EC2 instance running Amazon Linux 2023)
  2. Run /login.
  3. Choose 3. 3rd-party platform.
  4. Choose 1. Amazon Bedrock.
  5. Choose 2. Bedrock API key (bearer token).
  6. Paste the Bedrock API key, as seen in the attached recording.
  7. The screen will show a Where your Bedrock models are enabled. prompt, as seen in the attached recording.
  8. Type eu-central-1, as seen in the attached recording.

The TUI cancels the request as soon as I type the n key, as seen in the attached recording.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.114

Platform

AWS Bedrock

Operating System

Other Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be worked around by pasting the full region string eu-central-1 instead of typing it manually.

Guidance

  • The problem seems to be related to the autocomplete or input handling in the TUI, specifically when typing eu-central-1.
  • Try typing the region string slowly or paste it as a whole to avoid any potential autocomplete issues.
  • Verify that the issue is specific to the eu-central-1 region by testing other regions with similar naming conventions.
  • Check if the issue persists when using a different terminal or shell to rule out any environment-specific problems.

Example

No code snippet is provided as the issue seems to be related to the TUI input handling.

Notes

The root cause of the issue is unclear, and it may be related to the TUI implementation or the specific environment used. Further investigation is needed to determine the exact cause.

Recommendation

Apply workaround: Paste the full region string eu-central-1 to avoid any potential input handling issues. This is a temporary solution until the root cause is identified and fixed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Unable to specify AWS eu-central-1 as a region when using a Bedrock API key