-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Honor explicit profile in client when credentials from AWS_ environment variables are present #2223
Conversation
…to profile_override_env
1: using modification of the provider chain based on profile being set in congif). Update specs to match new expected behavior.
when profile is set.
explicit ordering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hooray
Sorry to resurrect this, but… Trying to get a GitLab installation to not be single-threaded when working with S3 (opened an issue with GitLab, but have gotten no response on it, yet). Haven't found anything in their documentation to suggest that they're explicitly using this feature. Looking at this code (which I'm hoping their S3 storage-driver uses), I'm only seeing references to Overall, my goal here is to see if I can force GitLab to reference my performance-optimizations from |
What performance optimizations do you have in your config file? Unfortunately the Ruby SDK does not support the common runtime S3 client. We do support multi-threaded uploads and downloads, but only through the Resource interface such as Object#download_file and calling |
AWS_CONFIG_FILE is supported, and so are credentials from your ec2 assumed role. Those should be mentioned in the readme and if not we can touch that up. |
@alextwoods sed:
Bummer. What I've found, when attempting to transfer (with the AWS CLI) a multi-hundreds gigabyte TARfile created as an export (or as a full backup) is that, unless one uses the CRT, the transfer is very slow, even if one uses the non-CRT tuning-options. For a reference, when testing with a 500GiB TAR-file, with CRT, the transfer runs at 1GiB/s; without CRT – but with suitable values for number of threads and chunk-sizes – I can get it to run at 200-300MiB/s. Ultimately, it was AWS Support's recommendation to switch to CRT. Dunno if that's a limitation of the AWS CLI that I assumed carried over to the Ruby-based implementation (used by GitLab's S3 interfaces). Granted, my assumption that GitLab's FOG-based implementation is using this project's capabilities could be in error. Suppose I should go hit up the FOG project to validate my assumptions. I think I ended up in this thread due to a Google search that was thin on (non "sponsored" hits). |
@mullermp sed:
I assumed that EC2 instance-roles were supported by the Ruby SDKs (since the GitLab documentation had provided requisite guidance for setting up it's Ruby-based S3 driver to use it). However, when I'd looked for Thank you for confirming. 😄 |
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
To make sure we include your contribution in the release notes, please make sure to add description entry for your changes in the "unreleased changes" section of the
CHANGELOG.md
file (at corresponding gem). For the description entry, please make sure it lives in one line and starts withFeature
orIssue
in the correct format.For generated code changes, please checkout below instructions first:
https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
Thank you for your contribution!
Fixes #2165