Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS IAM: Credential report via CLI

I'm trying to pull the credential report using AWS CLI as shown in Getting Credential Reports for Your AWS Account - AWS Identity and Access Management.

However, on doing so:

Snapshot of my console

I get a file like this and not the credential report.

enter image description here

What am I doing wrong? Please help.

like image 675
Red Bottle Avatar asked Mar 03 '23 04:03

Red Bottle


1 Answers

The documentation page you linked says:

Content -> (blob)

Contains the credential report. The report is Base64-encoded.

From GitHub: Get IAM Credential Report:

aws iam generate-credential-report
aws iam get-credential-report --output text --query Content  | base64 -D
like image 149
John Rotenstein Avatar answered Mar 11 '23 02:03

John Rotenstein