-
Notifications
You must be signed in to change notification settings - Fork 793
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
Default AWS region to us-east-1 (#5211) #5244
Conversation
pub fn with_access_key_id(mut self, access_key_id: impl Into<String>) -> Self { | ||
self.access_key_id = Some(access_key_id.into()); | ||
self | ||
} | ||
|
||
/// Set the AWS Secret Access Key (required) | ||
/// Set the AWS Secret Access Key |
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.
This is a drive-by fix as these are no longer required (we support other forms of credential)
pub fn with_secret_access_key(mut self, secret_access_key: impl Into<String>) -> Self { | ||
self.secret_access_key = Some(secret_access_key.into()); | ||
self | ||
} | ||
|
||
/// Set the region (e.g. `us-east-1`) (required) | ||
/// Set the AWS Session Token to use for requests | ||
pub fn with_token(mut self, token: impl Into<String>) -> Self { |
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.
This is moved up from lower down, to sit alongside the credentials it relates to. I also tweaked the doc to make it a bit clearer.
FYI @ritchie46 |
Ah, nice one. Thanks for the heads up. Can remove my temporary workaround. ^^ |
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.
LGTM -- thank you @tustvold
Which issue does this PR close?
Closes #5211
Closes #3827
Rationale for this change
This has come up a number of times, and appears to cause friction for people using S3-compatible stores.
Most of such stores either support any region, or at the very least "us-east-1", and so we can default to
us-east-1
:What changes are included in this PR?
Are there any user-facing changes?