-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
feature-requestThis issue requests a feature.This issue requests a feature.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
Describe the feature
Add support for an AWS_S3_PREFERRED_TRANSFER_CLIENT environment variable that allows users to configure the
preferred_transfer_client setting for S3 transfers without modifying application code.
The environment variable would accept the same values as TransferConfig.preferred_transfer_client:
auto(default)crtclassic
When set, this environment variable would be used as the default value for TransferConfig.preferred_transfer_client if no explicit value is provided to the TransferConfig constructor.
Use Case
I need to enable CRT transfers for an application that uses boto3 for S3 operations (condo), but I do not wan to modify the library's source code.
Current situation:
- The library uses boto3's default TransferConfig, which means
preferred_transfer_client='auto' - On non-optimized instances, this doesn't use CRT even though I have
awscrtinstalled - To use CRT, I would need to fork the library or submit a PR to add TransferConfig configuration support
This feature would benefit:
- Using third-party libraries/applications without code modifications
- Operational flexibility (enable/disable CRT via environment without redeployment)
Proposed Solution
Above
Other Information
n/a
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
SDK version used
1.42.39
Environment details (OS name and version, etc.)
n/a
Metadata
Metadata
Assignees
Labels
feature-requestThis issue requests a feature.This issue requests a feature.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.