简体   繁体   中英

how to set ask cli set default region or aws default region

I am new to aws and alexa cli, can any one tell how to set default region ? I tried using below in my mac but not able to set :

export AWS_REGION=ap-south-1

Any help ?

Just tried this and it worked:

In your home there is .aws folder in that just modify the credentials file :

cd ~.aws/

and nano credentials as below :

[ask_cli_default]

region=ap-south-1

aws_access_key_id=aws access key of user

aws_secret_access_key=aws access secret of user

[Anand_CLI_5050]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM