Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

[Bug] Claude models missing after update: kiroAgent tightly couples AWS IAM SSO region with Bedrock API region, blocking cross-region model access

Open sam-debugops opened this issue 7 months ago • 2 comments

Before opening, please confirm:

Operating System

macOS Tahoe 26.3

Kiro Version

0.11.132

Bug Description

Environment: ​OS: macOS ​IDE Version: Latest update (Pro/Enterprise tier) ​Authentication: AWS IAM Identity Center (SSO) ​SSO Region: ap-southeast-1 ​Expected Bedrock Region (Claude): us-east-1 / us-west-2

​Description: After the recent Kiro update, all Anthropic Claude models (Opus, Sonnet) have disappeared from the model selection menu for enterprise users authenticating via AWS IAM Identity Center. Only open-source models remain available. ​Based on thorough local troubleshooting, the issue stems from a routing bug in Kiro's updated authentication logic. Kiro now strictly uses the SSO login region (ap-southeast-1) to query Bedrock models. Since Claude is not available in that specific region, the models fail to load. ​Steps to Reproduce & Local Troubleshooting Performed:

Steps to Reproduce

  1. Logged into AWS IAM Identity Center via CLI (aws sso login). The SSO is hosted in ap-southeast-1.
  2. ​Opened Kiro. Claude models are entirely missing.
  3. ​Inspected ~/Library/Application Support/Kiro/kiro-auth-token.json and noticed "region": "ap-southeast-1" is hardcoded from the SSO fetch.

​Attempted Fix 1: Overrode the region = us-east-1 in ~/.aws/config (while keeping sso_region = ap-southeast-1). Result: The UI immediately throws a Failed to authenticate with Kiro (Source: kiroAgent) error. Kiro's agent fails to reconcile the local region override with the SSO token.

​Attempted Fix 2: Performed a complete clean wipe of both AWS SSO cache (rm -rf ~/.aws/sso/cache) and Kiro's internal cache (rm -rf Cache CachedData "Local Storage" "Session Storage" Cookies*, etc.), then re-authenticated. Result: Re-authentication was successful, but Claude models are still missing because Kiro defaults back to querying Bedrock in ap-southeast-1.

​Root Cause Analysis: The kiroAgent currently couples the SSO authentication region with the AWS Bedrock service region. It does not allow users to fetch an authentication token from one region (e.g., ap-southeast-1) while querying Bedrock APIs in another (e.g., us-east-1), which is a standard enterprise AWS architecture.

Expected Behavior

Kiro should decouple the SSO login region from the Bedrock API region, allowing users (or enterprise admins) to specify a distinct region for model inference, or it should gracefully handle standard ~/.aws/config profile overrides without breaking the authentication agent.undefined

Conversation ID

No response

Additional Context

No response

sam-debugops avatar Apr 20 '26 02:04 sam-debugops

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues report AWS SSO authentication problems with Kiro CLI, involving region-related authentication failures and 'Unauthorized Client' errors after updates

github-actions[bot] avatar Apr 20 '26 02:04 github-actions[bot]

This issue has been automatically closed as it appears to be a duplicate of #7137.

If you believe this is incorrect, please comment on this issue and a maintainer will review it.

github-actions[bot] avatar Apr 24 '26 00:04 github-actions[bot]