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 Answers
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
EXPERT
James_S
answered 2 months ago
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!

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions