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>
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With