【问题标题】:AWS IAM: Credential report via CLIAWS IAM:通过 CLI 报告凭证
【发布时间】:2019-11-18 07:28:54
【问题描述】:

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

但是,这样做:

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

我做错了什么?请帮忙。

【问题讨论】:

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


    【解决方案1】:

    您链接的文档页面说:

    内容 -> (blob)

    包含凭据报告。该报告采用Base64 编码

    来自GitHub: Get IAM Credential Report

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

    【讨论】:

    • 任何提示如何在 Windows cmd 中执行此操作?
    • 不。您可能可以使用一些 PowerShell 来解码 base64。
    • 确切的命令是:aws iam get-credential-report --output text --query Content | base64 -d 带 d 减号 :)
    猜你喜欢
    • 2017-11-16
    • 1970-01-01
    • 2018-01-07
    • 1970-01-01
    • 2022-06-10
    • 1970-01-01
    • 1970-01-01
    • 2017-10-29
    • 2015-10-28
    相关资源
    最近更新 更多