Skip to content

Commit 273f71f

Browse files
Fix: Only prompt for Cognito User Pool ID when using Cognito provider (#50)
- Fix init command to conditionally ask for User Pool ID only for Cognito - Prevents setting cognito_user_pool_id to null for non-Cognito providers Co-authored-by: [email protected] <[email protected]>
1 parent 0fc6243 commit 273f71f

File tree

1 file changed

+4
-3
lines changed
  • source/claude_code_with_bedrock/cli/commands

1 file changed

+4
-3
lines changed

source/claude_code_with_bedrock/cli/commands/init.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,10 @@ def _gather_configuration(self, progress: WizardProgress, existing_config: dict[
293293
provider_type = "cognito"
294294
except Exception:
295295
pass # Continue to manual selection if parsing fails
296-
# For Cognito, we must ask for the User Pool ID
297-
# Cannot reliably extract from domain due to case sensitivity
298-
296+
297+
# For Cognito, we must ask for the User Pool ID
298+
# Cannot reliably extract from domain due to case sensitivity
299+
if provider_type == "cognito":
299300
# Try to detect region from domain
300301
region_match = re.search(r"\.auth\.([^.]+)\.amazoncognito\.com", provider_domain)
301302
if not region_match:

0 commit comments

Comments
 (0)