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).

已提问 3 个月前92 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容