LoginSignup
0
0

More than 3 years have passed since last update.

AWS PowerShell IAM認証情報レポートをダウンロードする

Posted at

発端

IAM認証情報レポートをPowershellでダウンロードしようとしたとき、
下のようなエラーが出て少し迷った。
エラーメッセージをググってもあまり情報がなかったので書いておきます。

Get-IAMCredentialReport : The service returned an error with Error Code ReportNotPresent and HTTP Body: <ErrorResponse xm
lns="https://iam.amazonaws.com/doc/2010-05-08/">
  <Error>
    <Type>Sender</Type>
    <Code>ReportNotPresent</Code>
  </Error>
  <RequestId>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</RequestId>
</ErrorResponse>

解決方法

ダウンロードする前にリクエストを投げておく必要があった。

Get-IAMCredentialReport.ps1
Request-IAMCredentialReport
Get-IAMCredentialReport -Raw > "status_reports.csv"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0