首页 > 解决方案 > aws configure get aws_access_key_id 的空结果

问题描述

我目前设置了一个 AWS cli 配置文件,我可以使用以下 powershell 命令进行查询:

aws configure list --profile <ProfileName>

这将返回有关配置文件名称、access_key 等的预期信息。

但是,当尝试仅获取访问密钥时,我什么也得不到。我正在运行的命令是aws configure get aws_access_key_id --profile <ProfileName>

这可能是什么原因?

标签: amazon-web-servicespowershell-2.0

解决方案


aws iam list-access-keys

Try to use this command. It should work.


推荐阅读