effect of default region when running aws configure in a CloudShell session

0

Wondering, what is the effect of setting a default region through running "aws configure" in an AWS CloudShell session? To me it looks like there is no effect (unlike using aws configure forma n EC2 host - here it shows the desired effect).

2回答
1

Based on a quick check of my own environment, I think CloudShell sets the AWS_DEFAULT_REGION environment variable, which will override a value in a configuration file (as written by aws configure).

You can check where it's getting the value for the region from with aws configure list. If it's the environment variable, you can override it with export AWS_DEFAULT_REGION=..., or clear it (so it should use the config file) with unset AWS_DEFAULT_REGION.

profile pictureAWS
エキスパート
James_S
回答済み 3ヶ月前
0

aws configure list is an interesting detail. It showed that it takes the value from AWS_REGION, I did not know that variable exists. Thank you!

回答済み 3ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ