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

object_store: When using an AWS profile, obtain the default AWS region from the active profile #4158

Closed
mr-brobot opened this issue Apr 29, 2023 · 1 comment · Fixed by #4161
Labels
enhancement Any new improvement worthy of a entry in the changelog object-store Object Store Interface

Comments

@mr-brobot
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

When using a named profile via the AWS_PROFILE environment variable, the user must also supply an AWS_REGION environment variable even when the profile designates the desired region (in ~/.aws/config).

Describe the solution you'd like

I think object_store should default to the region designated on the active profile, when the aws_profile feature is active, to alleviate the need for a redundant environment variable.

Describe alternatives you've considered

We could just force users to supply AWS_REGION always, but that seems like unnecessary friction.

Additional context

This will improve the UX for CLI utilities that rely on object_store, like DataFusion CLI: apache/datafusion#6157

@mr-brobot mr-brobot added the enhancement Any new improvement worthy of a entry in the changelog label Apr 29, 2023
@tustvold tustvold added the object-store Object Store Interface label May 18, 2023
@tustvold
Copy link
Contributor

label_issue.py automatically added labels {'object-store'} from #4161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog object-store Object Store Interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants