Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command to switch the region on aws cli


What is the command to switch the region on aws cli. I want to switch to another region where my lambdas are present
I have tried these commands but they doesn't work

aws --region <region_name>
aws set region <region_name>
aws configure region <region_name>
aws lambda .... --region <region_name>
like image 552
Anam Qureshi Avatar asked Dec 05 '25 14:12

Anam Qureshi


1 Answers

You can set/switch the AWS region in AWS CLI using the aws configure set command. Below is the command to set/switch region.

aws configure set region <region_name>

and the attached image has an example of my AWS CLI configuration after switching the region.

Check this image

Reference - https://docs.aws.amazon.com/cli/latest/reference/configure/set.html

like image 101
Naveen Raj Avatar answered Dec 09 '25 14:12

Naveen Raj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!