[英]how to set ask cli set default region or aws default region
[英]aws cli not honouring default region configuration
我在~/.aws/config
文件中設置了默認區域:
[default]
region=us-west-2
但是,當我為某些特定配置文件嘗試describe-instances
命令時,它失敗並顯示以下消息:
$ aws ec2 describe-instances --profile my_profile
You must specify a region. You can also configure your region by running "aws configure".
它不應該使用~/.aws/config
文件中配置的默認配置文件嗎? 我在這里想念什么?
aws configure list
的 Output :
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key ******************** shared-credentials-file
secret_key ******************** shared-credentials-file
region us-west-2 config-file ~/.aws/config
aws configure list --profile my_profile
Name Value Type Location
---- ----- ---- --------
profile my_profile manual --profile
access_key ******************** shared-credentials-file
secret_key ******************** shared-credentials-file
region <not set> None None
ps是AWS的新手。 如果這是一個非常基本的問題,請原諒我。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.