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
-

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


Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

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