Description of changes: This change checks if the AWS_REGION or AWS_DEFAULT_REGION environment variable is available before defaulting to the default profile. Following the awscli implementation, the former takes precedence over the latter. This improve user experience in managed environments such as SageMaker notebooks.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: #352
Description of changes: This change checks if the
AWS_REGION
orAWS_DEFAULT_REGION
environment variable is available before defaulting to the default profile. Following theawscli
implementation, the former takes precedence over the latter. This improve user experience in managed environments such as SageMaker notebooks.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.