Skip to content

Comments

Add AWS SSO support to AmazonBedrock service#66

Open
wjdwndud0114 wants to merge 3 commits intotom-doerr:mainfrom
wjdwndud0114:main
Open

Add AWS SSO support to AmazonBedrock service#66
wjdwndud0114 wants to merge 3 commits intotom-doerr:mainfrom
wjdwndud0114:main

Conversation

@wjdwndud0114
Copy link

@wjdwndud0114 wjdwndud0114 commented Jan 7, 2026

Summary

  • Add support for AWS SSO authentication in the AmazonBedrock service client
  • Introduce aws_profile configuration option for SSO and profile-based authentication
  • Restructure boto3 session and client initialization for better credential handling

Changes

  • Added aws_profile config key to support AWS SSO profiles
  • Separated session creation (for profile handling) from client creation (for explicit credentials)
  • Updated documentation to explain SSO usage and credential precedence
  • Added comments to clarify the authentication flow

Benefits

  • Users can now authenticate using AWS SSO profiles without explicit credentials
  • Falls back to boto3's standard credential chain when no profile is specified
  • Maintains backward compatibility with existing explicit credential configurations

Usage

For AWS SSO users, set aws_profile to your SSO profile name:

[service]
service = bedrock_service

[bedrock_service]
api_type = bedrock
aws_profile = claude
aws_region = us-east-1
model = us.anthropic.claude-sonnet-4-5-20250929-v1:0

Then run: aws sso login --profile my-sso-profile

🤖 Generated with Claude Code

Kevin Jeong and others added 3 commits January 7, 2026 14:08
- Add aws_profile configuration option for SSO authentication
- Restructure boto3 session/client initialization to support SSO profiles
- Update documentation with SSO usage instructions
- Separate session kwargs from client kwargs for better credential handling

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant