You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read environment variable AWS_DEFAULT_REGION or value in ~/.aws/config. Will need to take into account AWS_PROFILE environment variable. Might need to do something to sync with ConfigFileCredentialProvider
To ensure this is done before any requests are made, need to do this before the credential provider setup is complete
If a service config has no region then should use default region from AWSClient.
As service can be created before AWSClient we cannot just copy default region to service. One way to avoid this is add new region useDefault which will use AWSClient default when a request occurs.
Steps
AWSClient.AWS_DEFAULT_REGIONor value in~/.aws/config. Will need to take into accountAWS_PROFILEenvironment variable. Might need to do something to sync withConfigFileCredentialProviderAWSClient.AWSClientwe cannot just copy default region to service. One way to avoid this is add new regionuseDefaultwhich will useAWSClientdefault when a request occurs.