Skip to content
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

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

tustvold
Copy link
Contributor

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?

@github-actions github-actions bot added the object-store Object Store Interface label Dec 26, 2023
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
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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.

@tustvold
Copy link
Contributor Author

FYI @ritchie46

@ritchie46
Copy link
Contributor

Ah, nice one. Thanks for the heads up. Can remove my temporary workaround. ^^

Copy link
Contributor

@alamb alamb left a 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

@tustvold tustvold merged commit c578570 into apache:master Dec 30, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[object-store] Make aws region optional. Cannot access Alibaba Cloud OSS via AmazonS3
3 participants