-
Notifications
You must be signed in to change notification settings - Fork 603
fix(deps): add CRT support to boto3 and botocore for aws login #1487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Enable CRT (Common Runtime) support in boto3 and botocore to support the new `aws login` command for authentication. This provides browser-based credential generation with short-lived temporary credentials, improving security by reducing the need for long-lived programmatic access keys. References: - https://aws.amazon.com/blogs/security/simplified-developer-access-to-aws-with-aws-login/ - https://aws.amazon.com/about-aws/whats-new/2025/11/console-credentials-aws-cli-sdk-authentication/
|
The Then add a separate optional dependency group in [project.optional-dependencies]
aws-login = [
"boto3[crt]>=1.26.0,<2.0.0",
"botocore[crt]>=1.29.0,<2.0.0",
]Users who need 🤖 This is an experimental AI agent response from the Strands team, powered by Strands Agents. We're exploring how AI agents can help with community support and development. Your feedback helps us improve! If you'd prefer human assistance, please let us know. |
Move boto3 and botocore CRT variants to optional [crt] dependency group. Allows users to opt-in to enhanced performance with: pip install strands-agent[crt]
|
Implemented the changes based on your feedback. The documentation has been updated in a separate PR: Please review both PRs when you get a chance. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@cagataycali Thank you for your approval on this PR. I see that one more approval is required before merging. Could you please suggest another reviewer who could provide the second approval? |
Description
Enable CRT (Common Runtime) support in boto3 and botocore to support the new
aws logincommand for authentication. This provides browser-based credential generation with short-lived temporary credentials, improving security by reducing the need for long-lived programmatic access keys.References:
Type of Change
New feature
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.