【发布时间】:2020-11-06 20:09:30
【问题描述】:
当我发出命令 aws config list 时,我会得到默认配置文件的以下输出:
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
但是,当我为命名配置文件发出命令时,我得到一个配置文件名称
$ aws configure list --profile MyProfile
Name Value Type Location
---- ----- ---- --------
profile MyProfile manual --profile
我尝试aws configure set profile Default 通过阅读“set”CLI 命令将默认配置文件命名为Default,我还尝试了aws configure set StoreAs Default,因为我认为这就是我阅读this page 后命名的变量.我想这样做是因为我想要两个配置文件,并且我想使用 AWS_DEFAULT_PROFILE 环境变量在配置文件之间切换。
【问题讨论】:
-
仅供参考,
aws config list的新等效命令现在是aws configure list。
标签: amazon-web-services aws-cli