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
AWS Change the Default Region

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap