What is the difference between AWS_DEFAULT_REGION and AWS_REGION system variables?
29 Sept 2021, 09:10 UTC
Some examples in internet have AWS_DEFAULT_REGION env variable set but some others AWS_REGION. What is the difference? Which services use one or another?
1 answer
Accepted answer · original discussion
03 Oct 2021, 09:10 UTC
AWS_DEFAULT_REGION and AWS_REGION is the same.
They first introduce AWS_REGION in SDK and then AWS_DEFAULT_REGION comes later.
it is also asked in their aws-cli
AWS_DEFAULT_REGION - Specifies the AWS Region to send the request to. If defined, this environment variable overrides the value for the profile setting region. You can override this environment variable by using the --region command line parameter. source
1 question comment
Use comments to ask for clarification. Post a solution as an answer.
01 Oct 2021, 09:10 UTC
AWS_DEFAULT_REGION, here is the documentation docs.aws.amazon.com/cli/latest/userguide/…