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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠