У меня установлен регион по умолчанию в файле ~/.aws/config
:
[default]
region=us-west-2
Однако, когда я пытаюсь выполнить команду describe-instances
для некоторого определенного профиля c, он выдает следующее сообщение:
$ 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
:
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. простите меня, если это очень базовый c вопрос.