Technical questionAccepted answer
What is the difference between AWS_DEFAULT_REGION and AWS_REGION system variables?
Cherry
Jan 29
0 views1
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
user2398347
PermalinkJan 29
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
Your perspective belongs here.
Sign in with a verified account to contribute.
1 question comment
Use comments to ask for clarification. Post a solution as an answer.
Ahmet ZeybekPermalink
Jan 29
Both are same, they have updated env variable to
AWS_DEFAULT_REGION, here is the documentation docs.aws.amazon.com/cli/latest/userguide/…