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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南