How to Change AWS Default Region using CLI

If you want to change the default region that you have set in the aws config file you can make use of the aws configure set region AWS CLI command.

Let's take a look at an example.

aws configure set region us-east-2

Now to check what region you have set, you can make use of the command - aws configure get region

% aws configure get region
us-east-2
AWS Change the Default Region

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!