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?
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