AWS IAM:通过CLI的凭证报告

时间:2019-11-18 07:28:54

标签: amazon-web-services amazon-iam aws-cli

我正在尝试使用AWS CLI提取凭证报告,如Getting Credential Reports for Your AWS Account - AWS Identity and Access Management所示。

但是,这样做:

Snapshot of my console

我得到的是这样的文件,而不是凭证报告。

enter image description here

我在做什么错?请帮忙。

1 个答案:

答案 0 :(得分:1)

您链接的文档页面上显示:

  

内容->(blob)

     

包含凭证报告。该报告是 Base64编码的

来自GitHub: Get IAM Credential Report

aws iam generate-credential-report
aws iam get-credential-report --output text --query Content  | base64 -D