-
Notifications
You must be signed in to change notification settings - Fork 309
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
feat: allow the AWS_DEFAULT_REGION environment variable #721
feat: allow the AWS_DEFAULT_REGION environment variable #721
Conversation
Amazon has this variable documented, and apparently people are trying to use it, so we should support it
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.
I believe you need to run blacken
to fix the linter errors.
You also need to update the functions descriptions, e.g. _get_region
to mention that we also read AWS_DEFAULT_REGION
.
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.
Just one more thing. Can you update the descriptions to mention that we also support AWS_DEFAULT_REGION
?
These places:
google-auth-library-python/google/auth/aws.py
Line 427 in d80c85f
Retrieve the AWS region from the AWS_REGION environment variable or from google-auth-library-python/google/auth/aws.py
Line 507 in d80c85f
"""Retrieves the current AWS region from either the AWS_REGION
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.
Thanks for making all the changes!
Amazon has this variable documented, and apparently people are trying to
use it, so we should support it